public final class IntUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static int |
bytesToInt(byte[] source) |
static int |
bytesToInt(byte[] source,
int offset,
ByteOrder order)
bytes to int
|
static byte[] |
intToBytes(int value,
ByteOrder order)
int number to bytes
|
static int[] |
intToPositiveBytes(int value,
ByteOrder order) |
public static byte[] intToBytes(int value,
ByteOrder order)
value - xxxorder - xxxpublic static int[] intToPositiveBytes(int value,
ByteOrder order)
public static int bytesToInt(byte[] source)
public static int bytesToInt(byte[] source,
int offset,
ByteOrder order)
source - xxxoffset - xxxorder - xxxCopyright © 2019. All rights reserved.