Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Base16IntegerWriter

Hierarchy

  • Writer<unknown, unknown>
    • Base16IntegerWriter

Index

Constructors

constructor

  • new Base16IntegerWriter(value: unknown, input: number, width: number, base16: Base16, index?: undefined | number, step?: undefined | number): Base16IntegerWriter

Methods

andThen

  • andThen<O2>(that: Writer<unknown, O2>): Writer<unknown, O2>

asDone

  • asDone<I2>(): Writer<I2, unknown>

asError

  • asError<I2, O2>(): Writer<I2, O2>
  • Casts an errored Writer to different input and output types. A Writer in the error state can have any input type, and any output type.

    throws

    Error if this Writer is not in the error state.

    Type parameters

    • I2

    • O2

    Returns Writer<I2, O2>

bind

  • bind(): unknown

feed

  • feed(input: unknown): Writer<unknown, unknown>
  • Returns a Writer that represents the continuation of how to write the given input object.

    throws

    Error if this Writer does not know how to write the given input object.

    Parameters

    • input: unknown

    Returns Writer<unknown, unknown>

fork

  • fork(condition: unknown): Writer<unknown, unknown>

isCont

  • isCont(): boolean

isDone

  • isDone(): boolean

isError

  • isError(): boolean

pull

trap

  • trap(): Error

Static done

  • done<I, O>(): Writer<I, O>
  • done<I, O>(output: O): Writer<I, O>

Static error

  • error<I, O>(error: Error): Writer<I, O>

Static write

  • write(output: Output, value: unknown, input: number, width: number, base16: Base16, index?: number, step?: number): Writer<unknown, unknown>

Static writeLiteral

  • writeLiteral(output: Output, value: unknown, input: number, width: number, base16: Base16): Writer<unknown, unknown>