UNPKG

@ecash/lib

Version:

Library for eCash transaction building

22 lines 837 B
import { Endian } from './bytes.js'; import { Int } from './int.js'; import { Writer } from './writer.js'; /** * Writer implementation which only measures the length of the serialized * output but doesn't actually store any byte data. **/ export declare class WriterLength implements Writer { length: number; constructor(); /** Write a single byte */ putU8(_value: Int): void; /** Write a 2-byte little-endian integer (uint16_t) */ putU16(_value: Int, _endian?: Endian): void; /** Write a 4-byte little-endian integer (uint32_t) */ putU32(_value: Int, _endian?: Endian): void; /** Write an 8-byte little-endian integer (uint64_t) */ putU64(_value: Int, _endian?: Endian): void; /** Write the given bytes */ putBytes(bytes: Uint8Array): void; } //# sourceMappingURL=writerlength.d.ts.map