Thruput TypeScript protocol bindings
    Preparing search index...

    Type Alias VarBytes<N>

    VarBytes: Uint8Array & { max_length?: N }

    A Uint8Array of at most N bytes.

    max_length is a phantom type-level annotation: it does not exist at runtime, and any Uint8Array is assignable. The codec enforces the bound when encoding and decoding.

    Type Parameters

    • N extends number