Options
All
  • Public
  • Public/Protected
  • All
Menu

Class OutputBuffer<T>

Type parameters

  • T = unknown

Hierarchy

Index

Constructors

constructor

Properties

Readonly Abstract capacity

capacity: number

Readonly Abstract index

index: number

Readonly Abstract limit

limit: number

Readonly Abstract remaining

remaining: number

Readonly Abstract settings

settings: OutputSettings

Methods

Abstract asPart

  • Parameters

    • part: boolean

    Returns OutputBuffer<T>

Abstract bind

  • bind(): T
  • Returns T

clone

  • Returns OutputBuffer<T>

debug

  • Parameters

    • object: unknown

    Returns OutputBuffer<T>

display

  • Parameters

    • object: unknown

    Returns OutputBuffer<T>

flush

  • Returns OutputBuffer<T>

Abstract get

  • get(index: number): number
  • Parameters

    • index: number

    Returns number

Abstract has

  • has(index: number): boolean
  • Parameters

    • index: number

    Returns boolean

Abstract isCont

  • isCont(): boolean
  • Returns boolean

Abstract isDone

  • isDone(): boolean
  • Returns boolean

Abstract isError

  • isError(): boolean
  • Returns boolean

Abstract isFull

  • isFull(): boolean
  • Returns boolean

Abstract isPart

  • isPart(): boolean
  • Returns boolean

push

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

    • Rest ...tokens: number[]

    Returns void

Abstract set

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

    • index: number
    • token: number

    Returns void

Abstract step

  • Parameters

    • Optional offset: number

    Returns OutputBuffer<T>

trap

  • trap(): Error
  • Returns Error

Abstract withIndex

  • Parameters

    • index: number

    Returns OutputBuffer<T>

Abstract withLimit

  • Parameters

    • limit: number

    Returns OutputBuffer<T>

Abstract withSettings

Abstract write

  • Parameters

    • token: number

    Returns OutputBuffer<T>

  • Parameters

    • string: string

    Returns OutputBuffer<T>

writeln

  • Parameters

    • Optional string: string

    Returns OutputBuffer<T>

Static done

  • Returns OutputBuffer<never>

Static error

  • Parameters

    • error: Error

    Returns OutputBuffer<never>

Static full

  • Returns OutputBuffer<never>

Generated using TypeDoc