API reference
Preparing search index…

MemoryInputStream

Retains the supplied bytes without copying them.

Type hierarchy

Hierarchy (View Summary)

Source & inheritance
Member directory6

Constructors

Methods

Constructors

Methods

  • Retain data by reference and reset the read position to zero without copying bytes.

    Parameters

    data
    Uint8Array

    Returns

    void
    Source & inheritance
  • Read into destination and advance the position; return the byte count, 0n at the end of the stream, or undefined if not open.

    Parameters

    destination
    Uint8Array

    Returns

    undefined | bigint
    Source & inheritance
  • Set a non-negative byte position, clamped to the end of the stream; return the actual position, or undefined if not open.

    Parameters

    position
    bigint

    Returns

    undefined | bigint
    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0