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

    Interface FloatArrayTarget

    A float array's destination — for an ArrayKind.Fp32 or ArrayKind.Fp64 array. Exactly one of the two must be set, it must match the element width the array's own fixlen_word declared (§4.8), and it must hold at least count elements; anything else is refused with SofabErrorCode.Argument before a single element is written.

    There is no bound here: §4.6 gives a float no schema interval to violate, so there is nothing to compare and nothing for the caller to state.

    An fp32 array chooses between the two: f32 takes values, bits takes the wire words. The choice is real, not stylistic — reading an fp32 through a double quiets a signaling NaN (0x7fa00001 comes back 0x7fe00001), so a reader that must reproduce fp32 payloads bit-for-bit (§4.6/§6.5) takes bits. fp64 needs no such choice: a Float64Array carries all 64 bits, payload NaNs included.

    interface FloatArrayTarget {
        bits?: Uint32Array<ArrayBufferLike>;
        f32?: Float32Array<ArrayBufferLike>;
        f64?: Float64Array<ArrayBufferLike>;
    }
    Index
    bits?: Uint32Array<ArrayBufferLike>

    Bit destination for an ArrayKind.Fp32 array: each element as its 4 wire bytes in one little-endian 32-bit word — the same number OStream.writeFp32Bits takes, so a payload read through this and written back reproduces the wire exactly, signaling NaNs included.

    f32?: Float32Array<ArrayBufferLike>

    Value destination for an ArrayKind.Fp32 array.

    f64?: Float64Array<ArrayBufferLike>

    Destination for an ArrayKind.Fp64 array.