Skip to main content

Stream

Index

Constructors

constructor

  • new Stream(dataArray: ArrayBuffer): Stream
  • Parameters

    • dataArray: ArrayBuffer

    Returns Stream

Properties

data

data: Uint8Array

len

len: number = 0

position

position: number = 0

Methods

publicread

  • read(n: number): string
  • Parameters

    • n: number

    Returns string

publicreadByte

  • readByte(): number
  • Returns number

publicreadBytes

  • readBytes(n: number): number[]
  • Parameters

    • n: number

    Returns number[]

publicreadUnsigned

  • readUnsigned(): number
  • Returns number