Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Binary

Byte Input/Output factory.

The Binary.uint8ArrayOutput(...)} function returns an Output that writes bytes to a growable array, and binds a Uint8Array containing all written bytes.

Hierarchy

  • Binary

Index

Methods

Static outputBuffer

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

Static uint8ArrayOutput

  • Returns a new Output that appends bytes to a growable array, pre-allocated with space for initialCapacity bytes, if initialCapacity is defined, using the given settings, if settings is defined. The returned Output accepts an unbounded number of bytes, remaining permanently in the cont state, and can bind a Uint8Array with the current output state at any time.

    Parameters

    Returns Output<Uint8Array>

  • Returns a new Output that appends bytes to a growable array, using the given settings. The returned Output accepts an unbounded number of bytes, remaining permanently in the cont state, and can bind a Uint8Array array with the current output state at any time.

    Parameters

    Returns Output<Uint8Array>