bsv.encoding.BufferReader
scrypt-ts / bsv / encoding / BufferReader
Class: BufferReader
Table of contents
Constructors
Properties
Methods
- eof
- read
- readAll
- readInt32LE
- readReverse
- readUInt16BE
- readUInt16LE
- readUInt32BE
- readUInt32LE
- readUInt64BEBN
- readUInt64LEBN
- readUInt8
- readVarLengthBuffer
- readVarintBN
- readVarintBuf
- readVarintNum
- remaining
- reverse
Constructors
constructor
• new BufferReader(buf
)
Parameters
Name | Type |
---|---|
buf | Buffer |
Defined in
node_modules/bsv/index.d.ts:610
Properties
pos
• pos: number
Defined in
node_modules/bsv/index.d.ts:629
Methods
eof
▸ eof(): boolean
Returns
boolean
Defined in
node_modules/bsv/index.d.ts:627
read
▸ read(len
): Buffer
Parameters
Name | Type |
---|---|
len | number |
Returns
Buffer
Defined in
node_modules/bsv/index.d.ts:611
readAll
▸ readAll(): Buffer
Returns
Buffer
Defined in
node_modules/bsv/index.d.ts:626
readInt32LE
▸ readInt32LE(): number
Returns
number
Defined in
node_modules/bsv/index.d.ts:617
readReverse
▸ readReverse(len?
): Buffer
Parameters
Name | Type |
---|---|
len? | number |
Returns
Buffer
Defined in
node_modules/bsv/index.d.ts:625
readUInt16BE
▸ readUInt16BE(): number
Returns
number
Defined in
node_modules/bsv/index.d.ts:613
readUInt16LE
▸ readUInt16LE(): number
Returns
number
Defined in
node_modules/bsv/index.d.ts:614
readUInt32BE
▸ readUInt32BE(): number
Returns
number
Defined in
node_modules/bsv/index.d.ts:615
readUInt32LE
▸ readUInt32LE(): number
Returns
number
Defined in
node_modules/bsv/index.d.ts:616
readUInt64BEBN
▸ readUInt64BEBN(): number
Returns
number
Defined in
node_modules/bsv/index.d.ts:618
readUInt64LEBN
▸ readUInt64LEBN(): number
Returns
number
Defined in
node_modules/bsv/index.d.ts:619
readUInt8
▸ readUInt8(): number
Returns
number
Defined in
node_modules/bsv/index.d.ts:612
readVarLengthBuffer
▸ readVarLengthBuffer(): Buffer
Returns
Buffer
Defined in
node_modules/bsv/index.d.ts:621
readVarintBN
▸ readVarintBN(): BN
Returns
Defined in
node_modules/bsv/index.d.ts:623
readVarintBuf
▸ readVarintBuf(): Buffer
Returns
Buffer
Defined in
node_modules/bsv/index.d.ts:622
readVarintNum
▸ readVarintNum(): number
Returns
number
Defined in
node_modules/bsv/index.d.ts:620
remaining
▸ remaining(): number
Returns
number
Defined in
node_modules/bsv/index.d.ts:628
reverse
▸ reverse(): BufferReader
Returns
Defined in
node_modules/bsv/index.d.ts:624