Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OutputBuffer<T>

Non-blocking token stream buffer.

Type parameters

  • T

Hierarchy

Implements

Index

Methods

Abstract bind

  • bind(): T

Abstract capacity

  • capacity(): number

clone

debug

display

flush

Abstract get

  • get(index: number): number

Abstract has

  • has(index: number): boolean

Abstract index

Abstract isCont

  • isCont(): boolean

Abstract isDone

  • isDone(): boolean

Abstract isError

  • isError(): boolean
  • Returns true when an immediate write will fail due to an error with the token stream. i.e. this Output is in the error state. When true, trap() will return the output error.

    Returns boolean

Abstract isFull

  • isFull(): boolean

Abstract isPart

  • isPart(): boolean
  • isPart(isPart: boolean): OutputBuffer<T>

Abstract limit

push

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

Abstract remaining

  • remaining(): number

Abstract set

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

Abstract settings

Abstract step

trap

  • trap(): Error

Abstract write

writeln

Static done

Static error

Static full