Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BitInputStream

Index

Constructors

constructor

  • new BitInputStream(buffer: Uint8Array, offset?: number, limit?: number): BitInputStream

Properties

Protected bit

bit: number

Protected bitPos

bitPos: number

buffer

buffer: Uint8Array

Protected limit

limit: number

Protected pos

pos: number

Protected start

start: number

Accessors

length

  • get length(): number

position

  • get position(): number

Methods

[iterator]

  • [iterator](): Generator<number, void, unknown>
  • Returns Generator<number, void, unknown>

Protected _read

  • _read(wordSize: number): number
  • Parameters

    • wordSize: number

    Returns number

Protected checkLimit

  • checkLimit(requested: number): void
  • Parameters

    • requested: number

    Returns void

read

  • read(wordSize?: number): number
  • Parameters

    • wordSize: number = 1

    Returns number

readBit

  • readBit(): number

readFields

  • readFields(fields: number[]): number[]
  • Parameters

    • fields: number[]

    Returns number[]

readStruct

  • readStruct(fields: [string, number][]): any
  • Parameters

    • fields: [string, number][]

    Returns any

readWords

  • readWords(n: number, wordSize?: number): number[]
  • Parameters

    • n: number
    • wordSize: number = 8

    Returns number[]

seek

Generated using TypeDoc