SofaBuffers TypeScript - v0.11.0
    Preparing search index...

    Class BlobSeq

    Collects the elements of a blob wrapper-sequence array into out. The string twin above, with two differences: the payload is stored as bytes rather than decoded, and gaps are filled with an empty Uint8Array.

    Each element is storage of its own — what PayloadAcc returns is a buffer it allocated and handed over, never a view into the fed chunk (§6.7) — so a stored element cannot rot when the caller reuses its input.

    The destination, placed at out[id].

    The decoder's shared PayloadAcc.

    The schema count as an index capacity, or UNBOUNDED (-1) for unbounded.

    The element maxlen in bytes, or UNBOUNDED (-1) for an element the schema left open, where receiverElemMax governs instead.

    The schema field name, used only in the rejection message.

    The receiver-side index cap for a schema-unbounded array (§6.2.1) — see StringSeq. Required, with no default.

    The receiver-side max_dyn_blob_len for a schema-unbounded element (§6.2.1) — see StringSeq. Required, with no default.

    Index
    • Parameters

      • out: Uint8Array<ArrayBufferLike>[]
      • acc: PayloadAcc
      • cap: number
      • elemMax: number
      • name: string
      • receiverCap: number
      • receiverElemMax: number

      Returns BlobSeq

    cap: number
    elemMax: number
    name: string
    out: Uint8Array<ArrayBufferLike>[]
    receiverCap: number
    receiverElemMax: number
    • One payload piece of element id (Visitor.blob).

      Parameters

      • id: number
      • total: number
      • offset: number
      • src: Uint8Array
      • start: number
      • end: number

      Returns void