Function u32ToBytes

  • Converts an unsigned 32-bit integer (u32) into a Uint8Array.

    Parameters

    • val: number

      The number to convert

    Returns Uint8Array

    A Uint8Array containing the serialized u32 value

    Throws

    Will throw an error if the input value is not within the valid u32 range (0 to 4,294,967,295)

Generated using TypeDoc