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
Deprecated
import from "@metaplex-foundation/umi/serializers" instead.
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.