Static Public Member Functions | |
| static byte | castByte (int value) |
| Casts an integer to a byte. More... | |
| static int | castInteger (byte value) |
| Casts a long to a byte. More... | |
| static long | castLong (byte value) |
| Casts an integer to a byte. More... | |
| static byte | leftShift (byte value, int count) |
| Performs a bit-wise left shift on a byte value. More... | |
| static short | leftShiftShort (short value, int count) |
| Performs a bit-wise left shift on a short value. More... | |
| static int | leftShiftInteger (int value, int count) |
| Performs a bit-wise left shift on an integer value. More... | |
| static long | leftShiftLong (long value, int count) |
| Performs a bit-wise left shift on a long value. More... | |
| static byte | rightShift (byte value, int count) |
| Performs an unsigned bit-wise right shift on a byte value. More... | |
| static short | rightShiftShort (short value, int count) |
| Performs an unsigned bit-wise right shift on a short value. More... | |
| static int | rightShiftInteger (int value, int count) |
| Performs an unsigned bit-wise right shift on an integer value. More... | |
| static long | rightShiftLong (long value, int count) |
| Performs an unsigned bit-wise right shift on a long value. More... | |
| static boolean | sequencesAreEqual (byte[] array1, byte[] array2) |
| Compares two sequences of bytes for equality. More... | |
| static boolean | sequencesAreEqual (byte[] array1, int offset1, byte[] array2, int offset2, int length) |
| Compares two sequences of bytes for equality. More... | |
| static boolean | sequencesAreEqualConstantTime (byte[] array1, byte[] array2) |
| Compares two sequences of bytes for equality in constant time. More... | |
| static boolean | sequencesAreEqualConstantTime (byte[] array1, int offset1, byte[] array2, int offset2, int length) |
| Compares two sequences of bytes for equality in constant time. More... | |
| static byte[] | subArray (byte[] array, int offset) |
| Creates a subarray from an existing array. More... | |
| static byte[] | subArray (byte[] array, int offset, int count) |
| Creates a subarray from an existing array. More... | |
| static void | reverse (byte[] array) |
| Performs an in-place reversal of a byte array. More... | |
| static void | copy (byte[] source, int sourceIndex, byte[] destination, int destinationIndex, int length) |
| Copies bytes from one array to another. More... | |
| static void | copyFloats (float[] source, int sourceIndex, float[] destination, int destinationIndex, int length) |
| Copies floats from one array to another. More... | |
| static void | set (byte[] array, int index, int length, int value) |
| Sets a value across an array. More... | |
| static String | getHexString (byte[] array) |
| Converts a byte array to a hexadecimal string. More... | |
| static String | getHexString (byte[] array, int offset, int length) |
| Converts a byte array to a hexadecimal string. More... | |
| static byte[] | getHexBytes (String s) |
| Converts a hexadecimal string to a byte array. More... | |
| static String | getBinaryString (byte[] array) |
| Converts a byte array to a binary string. More... | |
| static String | getBinaryString (byte[] array, int offset, int length) |
| Converts a byte array to a binary string. More... | |
| static byte[] | getBinaryBytes (String s) |
| Converts a binary string to a byte array. More... | |
| static byte[] | convertSingleToBytes (float value, boolean littleEndian) |
| Converts a single to a byte array. More... | |
| static float | convertBytesToSingle (byte[] bytes, int index, boolean littleEndian) |
| Converts a byte array into a single. More... | |
| static byte[] | convertDoubleToBytes (double value, boolean littleEndian) |
| Convert a double to a byte array. More... | |
| static double | convertBytesToDouble (byte[] bytes, int index, boolean littleEndian) |
| Converts a byte array into a double. More... | |
|
static |
Casts an integer to a byte.
| value | The value. |
|
static |
Casts a long to a byte.
| value | The value. |
|
static |
Casts an integer to a byte.
| value | The value. |
|
static |
Converts a byte array into a double.
| bytes | The byte array. |
| index | The index. |
| littleEndian | Whether to use little-endian format. |
|
static |
Converts a byte array into a single.
| bytes | The byte array. |
| index | The index. |
| littleEndian | Whether to use little-endian format. |
|
static |
Convert a double to a byte array.
| value | The value. |
| littleEndian | Whether to use little-endian format. |
|
static |
Converts a single to a byte array.
| value | The value. |
| littleEndian | Whether to use little-endian format. |
|
static |
Copies bytes from one array to another.
| source | The source bytes. |
| sourceIndex | The starting index for copying from the source. |
| destination | The destination bytes. |
| destinationIndex | The starting index for copying to the destination. |
| length | The number of bytes to copy. |
|
static |
Copies floats from one array to another.
| source | The source floats. |
| sourceIndex | The starting index for copying from the source. |
| destination | The destination floats. |
| destinationIndex | The starting index for copying to the destination. |
| length | The number of floats to copy. |
|
static |
Converts a binary string to a byte array.
| s | The binary string. |
|
static |
Converts a byte array to a binary string.
| array | The byte array. |
|
static |
Converts a byte array to a binary string.
| array | The byte array. |
| offset | The offset into the array. |
| length | The number of bytes to convert. |
|
static |
Converts a hexadecimal string to a byte array.
| s | The hexadecimal string. |
|
static |
Converts a byte array to a hexadecimal string.
| array | The byte array. |
|
static |
Converts a byte array to a hexadecimal string.
| array | The byte array. |
|
static |
Performs a bit-wise left shift on a byte value.
| value | The value. |
| count | The number of bits to shift. |
|
static |
Performs a bit-wise left shift on an integer value.
| value | The value. |
| count | The number of bits to shift. |
|
static |
Performs a bit-wise left shift on a long value.
| value | The value. |
| count | The number of bits to shift. |
|
static |
Performs a bit-wise left shift on a short value.
| value | The value. |
| count | The number of bits to shift. |
|
static |
Performs an in-place reversal of a byte array.
| array | The array to reverse. |
|
static |
Performs an unsigned bit-wise right shift on a byte value.
| value | The value. |
| count | The number of bits to shift. |
|
static |
Performs an unsigned bit-wise right shift on an integer value.
| value | The integer value. |
| count | The number of bits to shift. |
|
static |
Performs an unsigned bit-wise right shift on a long value.
| value | The long value. |
| count | The number of bits to shift. |
|
static |
Performs an unsigned bit-wise right shift on a short value.
| value | The short value. |
| count | The number of bits to shift. |
|
static |
Compares two sequences of bytes for equality.
| array1 | The first byte array. |
| array2 | The second byte array. |
true if the sequences are equals; otherwise, false.
|
static |
Compares two sequences of bytes for equality.
| array1 | The first byte array. |
| offset1 | The first byte array offset. |
| array2 | The second byte array. |
| offset2 | The second byte array offset. |
| length | The length. |
true if the sequences are equal; otherwise, false.
|
static |
Compares two sequences of bytes for equality in constant time.
| array1 | The first byte array. |
| array2 | The second byte array. |
true if the sequences are equal; otherwise, false.
|
static |
Compares two sequences of bytes for equality in constant time.
| array1 | The first byte array. |
| offset1 | The first byte array offset. |
| array2 | The second byte array. |
| offset2 | The second byte array offset. |
| length | The length. |
true if the sequences are equal; otherwise, false.
|
static |
Sets a value across an array.
| array | The array bytes. |
| index | The starting index. |
| length | The number of bytes to set. |
| value | The value to set. |
|
static |
Creates a subarray from an existing array.
| array | The source array. |
| offset | The offset into the source array. |
|
static |
Creates a subarray from an existing array.
| array | The source array. |
| offset | The offset into the source array. |
| count | The number of bytes to copy into the subarray. |