Thruput TypeScript protocol bindings
    Preparing search index...

    Function FixedArrayCodec

    • Codec combinator for XDR fixed-length array (no length prefix, exactly N elements).

      encode accepts a readonly array so that FixedArray<T, N> values — whose exact length is part of their type, and which are therefore readonly — can be encoded directly. decode still produces a mutable array.

      Type Parameters

      • T

      Parameters

      Returns XdrCodec<T[]> & { encode(w: IWriter, val: readonly T[]): void }