In-memory StepExternalByteStore. Used by tests and as a degenerate store when the caller wants windowed accounting without real external storage.

Implements

Constructors

Accessors

Methods

Constructors

  • Construct this around a byte array (not copied).

    Parameters

    • bytes_: Uint8Array<ArrayBufferLike>

      The backing bytes.

    Returns InMemoryStepByteStore

Accessors

  • get byteLength(): number
  • Total size of the stored byte sequence.

    Returns number

    The byte length.

Methods

  • Read a range as a standalone copy.

    Parameters

    • offset: number

      Absolute offset of the first byte to read.

    • length: number

      Number of bytes to read.

    Returns Promise<Uint8Array<ArrayBufferLike>>

    The bytes.