Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BytesReader

Index

Constructors

  • Parameters

    • arr: Uint8Array

    Returns BytesReader

Properties

consumed: number = 0
source: Uint8Array

Accessors

  • get internalBytes(): Uint8Array
  • Returns Uint8Array

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

  • Parameters

    • val: number

    Returns void

Methods

  • readBigUIntBE(length: number): bigint
  • Parameters

    • length: number

    Returns bigint

  • readBigUIntLE(length: number): bigint
  • Parameters

    • length: number

    Returns bigint

  • readBytes(length: number): Uint8Array
  • Parameters

    • length: number

    Returns Uint8Array

  • readUInt16BE(): number
  • Returns number

  • readUInt32BE(): number
  • Returns number

  • readUInt8(): number
  • Returns number

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

    • T extends string

    • TEnumValue extends number

    Parameters

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

          • val: number

          Returns Error

    Returns TEnumValue

Generated using TypeDoc