I was wondering if system endianness matters when converting a byte array to a short / int / long. Would this be incorrect to do if the code runs on both big-endian and litt
No, that's fine as far as endianness is concerned, but you may have problems if your ints are only 16 bits wide.
int