Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BufferReader

Hierarchy

  • BufferReader

Index

Constructors

constructor

  • new BufferReader(options?: SmartBufferOptions | Buffer): BufferReader

Properties

smartBuffer

smartBuffer: SmartBuffer

Accessors

internalBuffer

  • get internalBuffer(): Buffer

readOffset

  • get readOffset(): number
  • set readOffset(val: number): void

Methods

readBigUInt64BE

  • readBigUInt64BE(): bigint

readBigUIntBE

  • readBigUIntBE(length: number): bigint

readBigUIntLE

  • readBigUIntLE(length: number): bigint

readBuffer

  • readBuffer(length: number): Buffer

readString

  • readString(arg?: number | BufferEncoding, encoding?: BufferEncoding): string

readUInt16BE

  • readUInt16BE(): number

readUInt32BE

  • readUInt32BE(offset?: undefined | number): number

readUInt8

  • readUInt8(): number

readUInt8Enum

  • readUInt8Enum<T, TEnumValue>(enumVariable: {}, invalidEnumErrorFormatter: (val: number) => Error): TEnumValue

Static fromBuffer

Generated using TypeDoc