@pond-ts/process API Reference
    Preparing search index...

    Interface RangeOutput

    A writable output buffer for a ranged recompute — [PND-PROCRANGE].

    The rows an op keeps unchanged are already here, values and validity, copied as blocks. The op fills [from, to) and nothing else.

    This exists because carrying a prefix forward correctly is harder than it looks and the obvious shortcut is silently wrong. Packed storage holds 0 at a missing cell, not NaN, so copying only values turns every warm-up gap in the prefix into a defined zero — measured at 1,875 wrong cells on a 5-study pass, caught by a from-scratch comparison rather than by any type. Validity has to move with the values, and doing that per cell is the O(n) walk the whole ticket exists to remove.

    interface RangeOutput {
        bits: Uint8Array;
        values: Float64Array;
        clear(i: number): void;
        set(i: number, v: number): void;
    }
    Index

    Properties

    Methods

    Properties

    bits: Uint8Array

    Validity bits, LSB-first, already carrying [0, from).

    Exposed so an op can write a run of cells as bytes rather than through RangeOutput.set per cell; most ops want set.

    values: Float64Array

    Length to. [0, from) already carries the previous output.

    Methods

    • Marks a cell missing.

      Only needed to undo a RangeOutput.set made in the same pass. Cells in [from, to) start unset and an unwritten cell seals as missing, so clearing one the op never set does nothing — which is why an empty clear passed the whole suite until a set-then-clear case was written (Layer 2, PR #573).

      Parameters

      • i: number

      Returns void