If I have one small number, that can be from 0-8, and another larger number that can be from 0-50, how would I store both of these numbers in one index of a UInt16Array or UInt32Array?
I want to be able to access both of these values and then set them again.
As Jaromanda said, you have to do bitwise operations. Here I am using 16bit to store final value, leftmost bits used for storing 0-50 and rightmost bits used for 0-8.