Skip to main content

bsv.encoding.BufferWriter

scrypt-ts / bsv / encoding / BufferWriter

Class: BufferWriter

bsv.encoding.BufferWriter

Table of contents

Constructors

Methods

Constructors

constructor

new BufferWriter()

Methods

toBuffer

toBuffer(): Buffer

Returns

Buffer

Defined in

node_modules/bsv/index.d.ts:644


write

write(buf): BufferWriter

Parameters

NameType
bufBuffer

Returns

BufferWriter

Defined in

node_modules/bsv/index.d.ts:632


writeInt32LE

writeInt32LE(n): BufferWriter

Parameters

NameType
nnumber

Returns

BufferWriter

Defined in

node_modules/bsv/index.d.ts:638


writeReverse

writeReverse(buf): BufferWriter

Parameters

NameType
bufBuffer

Returns

BufferWriter

Defined in

node_modules/bsv/index.d.ts:643


writeUInt16BE

writeUInt16BE(n): BufferWriter

Parameters

NameType
nnumber

Returns

BufferWriter

Defined in

node_modules/bsv/index.d.ts:634


writeUInt16LE

writeUInt16LE(n): BufferWriter

Parameters

NameType
nnumber

Returns

BufferWriter

Defined in

node_modules/bsv/index.d.ts:635


writeUInt32BE

writeUInt32BE(n): BufferWriter

Parameters

NameType
nnumber

Returns

BufferWriter

Defined in

node_modules/bsv/index.d.ts:636


writeUInt32LE

writeUInt32LE(n): BufferWriter

Parameters

NameType
nnumber

Returns

BufferWriter

Defined in

node_modules/bsv/index.d.ts:637


writeUInt64BEBN

writeUInt64BEBN(n): BufferWriter

Parameters

NameType
nnumber

Returns

BufferWriter

Defined in

node_modules/bsv/index.d.ts:639


writeUInt64LEBN

writeUInt64LEBN(n): BufferWriter

Parameters

NameType
nnumber

Returns

BufferWriter

Defined in

node_modules/bsv/index.d.ts:640


writeUInt8

writeUInt8(n): BufferWriter

Parameters

NameType
nnumber

Returns

BufferWriter

Defined in

node_modules/bsv/index.d.ts:633


writeVarintBN

writeVarintBN(n): BufferWriter

Parameters

NameType
nBN

Returns

BufferWriter

Defined in

node_modules/bsv/index.d.ts:642


writeVarintNum

writeVarintNum(n): BufferWriter

Parameters

NameType
nnumber

Returns

BufferWriter

Defined in

node_modules/bsv/index.d.ts:641