Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BufferReader

Index

Constructors

constructor

  • new BufferReader(options?: Buffer | SmartBufferOptions): 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?: number): number

readUInt8

  • readUInt8(): number

readUInt8Enum

  • readUInt8Enum<T, TEnumValue>(enumVariable: {[ key in string]: TEnumValue }, invalidEnumErrorFormatter: (val: number) => Error): TEnumValue
  • Type parameters

    • T: string

    • TEnumValue: number

    Parameters

    • enumVariable: {[ key in string]: TEnumValue }
    • invalidEnumErrorFormatter: (val: number) => Error
        • (val: number): Error
        • Parameters

          • val: number

          Returns Error

    Returns TEnumValue

Static fromBuffer

Generated using TypeDoc