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

    Variable fixSerializerConst

    fixSerializer: <T, U = T>(
        serializer: Serializer<T, U>,
        fixedBytes: number,
        description?: string,
    ) => Serializer<T, U> = _fixSerializer

    Type Declaration

      • <T, U = T>(
            serializer: Serializer<T, U>,
            fixedBytes: number,
            description?: string,
        ): Serializer<T, U>
      • 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>

    import from "@metaplex-foundation/umi/serializers" instead.