i already found this question: How to convert an int to a little endian byte array?
Is there a way to convert the integer into a byte[8] instead of a byte[4] array?
i already found this question: How to convert an int to a little endian byte array?
Is there a way to convert the integer into a byte[8] instead of a byte[4] array?
Just cast the int
to long
before converting to Little Endian.
"Filling" with zeroes would make any negative number a different positive number.