| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static long | Returns: The longThe bytes to interpret. bytes)Interpret the binary representation of a long. |
| public static byte[] | Returns: The binaryThe int to interpret to binary intValue)Interpret an int as its binary form |
| public static byte[] | Returns: The binaryThe long to interpret to binary longValue)Interpret a long as its binary form |
| public static byte[] | Returns: The binaryThe short to interpret to binary shortValue)Interpret a short as its binary form |
| public static String | |
| public static String | |
| public static String | |
| public static int | Returns: The generated int.The bytes to use in generating the int. bytes)Custom algorithm used to generate an int from a series of bytes. |
| BytesHelper | back to summary |
|---|---|
| private BytesHelper() | |
| asLong | back to summary |
|---|---|
| public static long asLong(byte[] bytes) Interpret the binary representation of a long.
| |
| fromInt | back to summary |
|---|---|
| public static byte[] fromInt(int intValue) Interpret an int as its binary form
| |
| fromLong | back to summary |
|---|---|
| public static byte[] fromLong(long longValue) Interpret a long as its binary form
| |
| fromShort | back to summary |
|---|---|
| public static byte[] fromShort(int shortValue) Interpret a short as its binary form
| |
| toBinaryString | back to summary |
|---|---|
| public static String toBinaryString(byte value) | |
| toBinaryString | back to summary |
|---|---|
| public static String toBinaryString(int value) | |
| toBinaryString | back to summary |
|---|---|
| public static String toBinaryString(long value) | |
| toInt | back to summary |
|---|---|
| public static int toInt(byte[] bytes) Custom algorithm used to generate an int from a series of bytes. NOTE : this is different than interpreting the incoming bytes as an int value!
| |