Umi — API References - v1.3.0
    Preparing search index...

    Function fixSerializer

    • 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.

      • Optionaldescription: string

        A custom description for the serializer.

      Returns Serializer<T, U>