This function first converts the input number to its hexadecimal string representation,
splits the hex string into pairs of characters (bytes), parses each pair as a base-16 integer,
and returns a Uint8Array containing the resulting byte values.
Parameters
number: number
The number to convert to a Uint8Array.
Returns Uint8Array<ArrayBuffer>
A Uint8Array representing the byte sequence of the input number.
Converts a number to a Uint8Array representation.
This function first converts the input number to its hexadecimal string representation, splits the hex string into pairs of characters (bytes), parses each pair as a base-16 integer, and returns a Uint8Array containing the resulting byte values.