• Convert an 32 bit integer into an array of 4 bytes.

    Parameters

    • i: number

      Number holding an integer value.

    Returns number[]

    An array of 4 bytes.

    // Set bytes to [0x11, 0x22, 0x33, 0x44]
    const bytes = pc.math.intToBytes32(0x11223344);