Read contract for the spilled source bytes. Implementations must return exactly the requested range (clamped reads are the caller's responsibility — the provider never requests past byteLength).

interface StepExternalByteStore {
    byteLength: number;
    read(offset: number, length: number): Promise<Uint8Array<ArrayBufferLike>>;
}

Implemented by

Properties

Methods

Properties

byteLength: number

Total size of the stored byte sequence.

Methods

  • Read length bytes starting at offset.

    Parameters

    • offset: number

      Absolute offset of the first byte to read.

    • length: number

      Number of bytes to read.

    Returns Promise<Uint8Array<ArrayBufferLike>>

    The bytes — a standalone array (byteOffset 0) of exactly length bytes.