Function i32ToBytes

  • Converts a signed 32-bit integer (i32) into a Uint8Array.

    Throws

    Will throw an error if the input value is not within the valid i32 range (-2,147,483,648 to 2,147,483,647)

    Returns

    A Uint8Array containing the serialized i32 value

    Parameters

    • val: number

      The number to convert

    Returns Uint8Array

Generated using TypeDoc