Skip to main content

bsv.encoding.BufferReader

scrypt-ts / bsv / encoding / BufferReader

Class: BufferReader

bsv.encoding.BufferReader

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new BufferReader(buf)

Parameters

NameType
bufBuffer

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

NameType
lennumber

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

NameType
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

BN

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

BufferReader

Defined in

node_modules/bsv/index.d.ts:624