Function u8toByte

  • Converts an unsigned 8-bit integer (u8) into a Uint8Array.

    Parameters

    • val: number

      The number to convert

    Returns Uint8Array

    A Uint8Array containing the serialized u8 value

    Throws

    Will throw an error if the input value is not within the valid u8 range (0 to 255)

Generated using TypeDoc