kaven-basic - v6.0.0
    Preparing search index...

    Function ToUint8Array

    • 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.

      Parameters

      • number: number

        The number to convert to a Uint8Array.

      Returns Uint8Array<ArrayBuffer>

      A Uint8Array representing the byte sequence of the input number.

      1.0.5

      2025-06-21