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

    Interface BoolArrayTarget

    A boolean array's destination: one byte per element, 0 or 1.

    It carries no bound, and that is the whole reason it is a shape of its own rather than a IntegerArrayTarget.typed Uint8Array. §4.4 gives a boolean no width bound — every non-zero wire value is true — so there is no interval to state and nothing for the width check to compare. A raw store would be wrong twice over: 256 would mask to 0 and turn true into false. The decoder NORMALIZES instead, writing 1 for any non-zero, which is also the only value §4.4 lets an encoder emit back — so a filled destination re-encodes canonically with no conversion step in between.

    interface BoolArrayTarget {
        bool: Uint8Array;
        mode?: BulkMode;
    }
    Index
    bool: Uint8Array

    One byte per element: 0 or 1, normalized by the decoder (§4.4).

    mode?: BulkMode

    Which destination this target sets — BulkMode.Bool, the only one it can be — stated so the decoder does not work it out again for every array of every message. Optional, and an assertion when present: see ArrayTarget and BulkMode for what it asserts and what it gives up.