Fixed wrong byte ordering
This commit is contained in:
parent
0495d3289b
commit
40fbbe1012
2 changed files with 7 additions and 7 deletions
|
|
@ -60,10 +60,10 @@ public class Converter {
|
|||
*/
|
||||
public static byte[] toBytes(int num){
|
||||
return new byte[]{
|
||||
(byte)((num >> 24)& 0xff),
|
||||
(byte)((num >> 16)& 0xff),
|
||||
(byte)(num & 0xff),
|
||||
(byte)((num >> 8)& 0xff),
|
||||
(byte)(num & 0xff)};
|
||||
(byte)((num >> 16)& 0xff),
|
||||
(byte)((num >> 24)& 0xff)};
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue