Given
private int width = 400; private byte [] data = new byte [2];
I want to split the integer \"width\" into two bytes and load data[0]
Integer is 32 bits (=4 bytes) in java, you know?
width & 0xff will give you the first byte, width & 0xff00 >> 8 will give you the second, etc.