Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ByteOutputBuffer

Hierarchy

Index

Constructors

constructor

Properties

Readonly array

array: Uint8Array

Readonly index

index: number

Readonly limit

limit: number

Readonly part

part: boolean

Readonly settings

settings: OutputSettings

Accessors

capacity

  • get capacity(): number
  • Returns number

remaining

  • get remaining(): number
  • Returns number

Methods

asPart

  • Parameters

    • part: boolean

    Returns OutputBuffer<Uint8Array>

bind

  • bind(): Uint8Array
  • Returns Uint8Array

clone

  • Returns OutputBuffer<Uint8Array>

debug

  • Parameters

    • object: unknown

    Returns OutputBuffer<Uint8Array>

display

  • Parameters

    • object: unknown

    Returns OutputBuffer<Uint8Array>

flush

  • Returns OutputBuffer<Uint8Array>

get

  • get(index: number): number
  • Parameters

    • index: number

    Returns number

has

  • has(index: number): boolean
  • Parameters

    • index: number

    Returns boolean

isCont

  • isCont(): boolean
  • Returns boolean

isDone

  • isDone(): boolean
  • Returns boolean

isError

  • isError(): boolean
  • Returns boolean

isFull

  • isFull(): boolean
  • Returns boolean

isPart

  • isPart(): boolean
  • Returns boolean

push

  • push(...tokens: number[]): void
  • Parameters

    • Rest ...tokens: number[]

    Returns void

set

  • set(index: number, token: number): void
  • Parameters

    • index: number
    • token: number

    Returns void

step

  • Parameters

    • offset: number

    Returns OutputBuffer<Uint8Array>

trap

  • trap(): Error
  • Returns Error

withIndex

  • Parameters

    • index: number

    Returns OutputBuffer<Uint8Array>

withLimit

  • Parameters

    • limit: number

    Returns OutputBuffer<Uint8Array>

withSettings

write

  • Parameters

    • token: string | number

    Returns OutputBuffer<Uint8Array>

writeln

  • Parameters

    • Optional string: string

    Returns OutputBuffer<Uint8Array>

Static create

  • create(array: Uint8Array, offset?: number, length?: number): OutputBuffer<Uint8Array>
  • Parameters

    • array: Uint8Array
    • Optional offset: number
    • Optional length: number

    Returns OutputBuffer<Uint8Array>

Static done

  • Returns OutputBuffer<never>

Static error

  • Parameters

    • error: Error

    Returns OutputBuffer<never>

Static full

  • Returns OutputBuffer<never>

Generated using TypeDoc