Convert an 32 bit integer into an array of 4 bytes.
Number holding an integer value.
An array of 4 bytes.
// Set bytes to [0x11, 0x22, 0x33, 0x44]const bytes = pc.math.intToBytes32(0x11223344); Copy
// Set bytes to [0x11, 0x22, 0x33, 0x44]const bytes = pc.math.intToBytes32(0x11223344);
Convert an 32 bit integer into an array of 4 bytes.