Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ByteOutput<T>

Type parameters

  • T

Hierarchy

Index

Constructors

constructor

  • Type parameters

    • T

    Parameters

    Returns ByteOutput<T>

Properties

Readonly array

array: null | Uint8Array

Readonly settings

settings: OutputSettings

Readonly size

size: number

Methods

asPart

  • asPart(part: boolean): Output<T>
  • Parameters

    • part: boolean

    Returns Output<T>

Abstract bind

  • bind(): T
  • Returns T

clone

  • Returns Output<T>

cloneArray

  • cloneArray(): null | Uint8Array
  • Returns null | Uint8Array

debug

  • debug(object: unknown): Output<T>
  • Parameters

    • object: unknown

    Returns Output<T>

display

  • display(object: unknown): Output<T>
  • Parameters

    • object: unknown

    Returns Output<T>

flush

  • Returns Output<T>

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

toUint8Array

  • toUint8Array(): Uint8Array
  • Returns Uint8Array

trap

  • trap(): Error
  • Returns Error

withSettings

write

  • write(b: string | number): Output<T>
  • Parameters

    • b: string | number

    Returns Output<T>

writeln

  • writeln(string?: string): Output<T>
  • Parameters

    • Optional string: string

    Returns Output<T>

Static done

  • Returns Output<never>

Static error

  • error(error: Error): Output<never>
  • Parameters

    • error: Error

    Returns Output<never>

Static expand

  • expand(n: number): number
  • Parameters

    • n: number

    Returns number

Static full

  • Returns Output<never>

Generated using TypeDoc