libnexa-ts
Version:
A pure and powerful Nexa SDK library.
27 lines • 979 B
TypeScript
import { BufferWriterOptions } from '../common/interfaces';
import { default as BN } from '../crypto/bn.extension';
export default class BufferWriter {
private bufs;
private bufLen;
constructor(obj?: BufferWriterOptions);
set(obj: BufferWriterOptions): this;
toBuffer(): Uint8Array;
concat(): Uint8Array;
write(buf: Uint8Array): this;
writeReverse(buf: Uint8Array): this;
writeUInt8(n: number): this;
writeUInt16BE(n: number): this;
writeUInt16LE(n: number): this;
writeUInt32BE(n: number): this;
writeInt32LE(n: number): this;
writeUInt32LE(n: number): this;
writeUInt64BEBN(bn: BN): this;
writeUInt64LEBN(bn: BN): this;
writeVarintNum(n: number): this;
writeVarintBN(bn: BN): this;
writeVarLengthBuf(buf: Uint8Array): this;
writeCoreVarintNum(n: number): this;
static varintBufNum(n: number): Uint8Array;
static varintBufBN(bn: BN): Uint8Array;
}
//# sourceMappingURL=bufferwriter.d.ts.map