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

    Variable fixBytesConst

    fixBytes: (bytes: Uint8Array, length: number) => Uint8Array = _fixBytes

    Type Declaration

      • (bytes: Uint8Array, length: number): Uint8Array
      • Fixes a Uint8Array to the specified length. If the array is longer than the specified length, it is truncated. If the array is shorter than the specified length, it is padded with zeroes.

        Parameters

        • bytes: Uint8Array
        • length: number

        Returns Uint8Array

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