bsv.encoding.BufferWriter
scrypt-ts / bsv / encoding / BufferWriter
Class: BufferWriter
Table of contents
Constructors
Methods
- toBuffer
- write
- writeInt32LE
- writeReverse
- writeUInt16BE
- writeUInt16LE
- writeUInt32BE
- writeUInt32LE
- writeUInt64BEBN
- writeUInt64LEBN
- writeUInt8
- writeVarintBN
- writeVarintNum
Constructors
constructor
• new BufferWriter()
Methods
toBuffer
▸ toBuffer(): Buffer
Returns
Buffer
Defined in
node_modules/bsv/index.d.ts:644
write
▸ write(buf
): BufferWriter
Parameters
Name | Type |
---|---|
buf | Buffer |
Returns
Defined in
node_modules/bsv/index.d.ts:632
writeInt32LE
▸ writeInt32LE(n
): BufferWriter
Parameters
Name | Type |
---|---|
n | number |
Returns
Defined in
node_modules/bsv/index.d.ts:638
writeReverse
▸ writeReverse(buf
): BufferWriter
Parameters
Name | Type |
---|---|
buf | Buffer |
Returns
Defined in
node_modules/bsv/index.d.ts:643
writeUInt16BE
▸ writeUInt16BE(n
): BufferWriter
Parameters
Name | Type |
---|---|
n | number |
Returns
Defined in
node_modules/bsv/index.d.ts:634
writeUInt16LE
▸ writeUInt16LE(n
): BufferWriter
Parameters
Name | Type |
---|---|
n | number |
Returns
Defined in
node_modules/bsv/index.d.ts:635
writeUInt32BE
▸ writeUInt32BE(n
): BufferWriter
Parameters
Name | Type |
---|---|
n | number |
Returns
Defined in
node_modules/bsv/index.d.ts:636
writeUInt32LE
▸ writeUInt32LE(n
): BufferWriter
Parameters
Name | Type |
---|---|
n | number |
Returns
Defined in
node_modules/bsv/index.d.ts:637
writeUInt64BEBN
▸ writeUInt64BEBN(n
): BufferWriter
Parameters
Name | Type |
---|---|
n | number |
Returns
Defined in
node_modules/bsv/index.d.ts:639
writeUInt64LEBN
▸ writeUInt64LEBN(n
): BufferWriter
Parameters
Name | Type |
---|---|
n | number |
Returns
Defined in
node_modules/bsv/index.d.ts:640
writeUInt8
▸ writeUInt8(n
): BufferWriter
Parameters
Name | Type |
---|---|
n | number |
Returns
Defined in
node_modules/bsv/index.d.ts:633
writeVarintBN
▸ writeVarintBN(n
): BufferWriter
Parameters
Name | Type |
---|---|
n | BN |
Returns
Defined in
node_modules/bsv/index.d.ts:642
writeVarintNum
▸ writeVarintNum(n
): BufferWriter
Parameters
Name | Type |
---|---|
n | number |
Returns
Defined in
node_modules/bsv/index.d.ts:641