• Convert an 24 bit integer into an array of 3 bytes.

    Parameters

    • i: number

      Number holding an integer value.

    Returns number[]

    An array of 3 bytes.

    // Set bytes to [0x11, 0x22, 0x33]
    const bytes = pc.math.intToBytes24(0x112233);