Function u16toByte

  • Converts an unsigned 16-bit integer (u16) into a Uint8Array.

    Parameters

    • val: number

      The number to convert

    Returns Uint8Array

    A Uint8Array containing the serialized u16 value

    Throws

    Will throw an error if the input value is not within the valid u16 range

Generated using TypeDoc