• Creates a fixed-size serializer from a given serializer.

    Type Parameters

    • T

    • U = T

    Parameters

    • serializer: Serializer<T, U>

      The serializer to wrap into a fixed-size serializer.

    • fixedBytes: number

      The fixed number of bytes to read.

    • Optional description: string

      A custom description for the serializer.

    Returns Serializer<T, U>

Generated using TypeDoc