| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: true if none of flags are in var, false otherwisethe value to test var, int the flags to test for flags)Determine if all of the |
| public static boolean | Returns: true if none of flags are in var, false otherwisethe value to test var, long the flags to test for flags)Determine if all of the |
| public static boolean | Returns: true if all of flags are in var, false otherwisethe value to test var, int the flags to test for flags)Determine if all of the |
| public static boolean | Returns: true if all of flags are in var, false otherwisethe value to test var, long the flags to test for flags)Determine if all of the |
| public static boolean | Returns: true if not all of flags are in var, false otherwisethe value to test var, int the flags to test for flags)Determine if any of the |
| public static boolean | Returns: true if not all of flags are in var, false otherwisethe value to test var, long the flags to test for flags)Determine if any of the |
| public static boolean | Returns: true if any of flags are in var, false otherwisethe value to test var, int the flags to test for flags)Determine if any of the |
| public static boolean | Returns: true if any of flags are in var, false otherwisethe value to test var, long the flags to test for flags)Determine if any of the |
| public static char | Returns: the signed char valuethe byte array b, int the offset in the array off)Get a 16-bit signed big-endian char value from a byte array. |
| public static char | Returns: the signed char valuethe byte array b, int the offset in the array off)Get a 16-bit signed little-endian char value from a byte array. |
| public static int | Returns: the bit maskthe low bit value low, int the high bit value high)Get an integer bit mask consisting of 1 bits in the given range. |
| public static int | Returns: the signed int valuethe byte array b, int the offset in the array off)Get a 32-bit signed big-endian int value from a byte array. |
| public static int | Returns: the signed int valuethe byte array b, int the offset in the array off)Get a 32-bit signed little-endian int value from a byte array. |
| public static long | Returns: the bit maskthe low bit value low, int the high bit value high)Get a long bit mask consisting of 1 bits in the given range. |
| public static long | Returns: the signed long valuethe byte array b, int the offset in the array off)Get a 64-bit signed big-endian long value from a byte array. |
| public static long | Returns: the signed long valuethe byte array b, int the offset in the array off)Get a 64-bit signed little-endian long value from a byte array. |
| public static int | Returns: the signed medium value as an intthe byte array b, int the offset in the array off)Get a 24-bit signed big-endian int value from a byte array. |
| public static int | Returns: the signed medium value as an intthe byte array b, int the offset in the array off)Get a 24-bit signed little-endian int value from a byte array. |
| public static short | Returns: the signed short valuethe byte array b, int the offset in the array off)Get a 16-bit signed big-endian short value from a byte array. |
| public static short | Returns: the signed short valuethe byte array b, int the offset in the array off)Get a 16-bit signed little-endian short value from a byte array. |
| public static int | Returns: the unsigned byte, as an intthe signed byte v)Convert a signed value to unsigned. |
| public static int | Returns: the unsigned short, as an intthe signed short v)Convert a signed value to unsigned. |
| public static long | Returns: the unsigned int, as a longthe signed int v)Convert a signed value to unsigned. |
| Bits | back to summary |
|---|---|
| private Bits() | |
| allAreClear | back to summary |
|---|---|
| public static boolean allAreClear(int var, int flags) Determine if all of the
| |
| allAreClear | back to summary |
|---|---|
| public static boolean allAreClear(long var, long flags) Determine if all of the
| |
| allAreSet | back to summary |
|---|---|
| public static boolean allAreSet(int var, int flags) Determine if all of the
| |
| allAreSet | back to summary |
|---|---|
| public static boolean allAreSet(long var, long flags) Determine if all of the
| |
| anyAreClear | back to summary |
|---|---|
| public static boolean anyAreClear(int var, int flags) Determine if any of the
| |
| anyAreClear | back to summary |
|---|---|
| public static boolean anyAreClear(long var, long flags) Determine if any of the
| |
| anyAreSet | back to summary |
|---|---|
| public static boolean anyAreSet(int var, int flags) Determine if any of the
| |
| anyAreSet | back to summary |
|---|---|
| public static boolean anyAreSet(long var, long flags) Determine if any of the
| |
| charFromBytesBE | back to summary |
|---|---|
| public static char charFromBytesBE(byte[] b, int off) Get a 16-bit signed big-endian char value from a byte array.
| |
| charFromBytesLE | back to summary |
|---|---|
| public static char charFromBytesLE(byte[] b, int off) Get a 16-bit signed little-endian char value from a byte array.
| |
| intBitMask | back to summary |
|---|---|
| public static int intBitMask(int low, int high) Get an integer bit mask consisting of 1 bits in the given range. The returned
| |
| intFromBytesBE | back to summary |
|---|---|
| public static int intFromBytesBE(byte[] b, int off) Get a 32-bit signed big-endian int value from a byte array.
| |
| intFromBytesLE | back to summary |
|---|---|
| public static int intFromBytesLE(byte[] b, int off) Get a 32-bit signed little-endian int value from a byte array.
| |
| longBitMask | back to summary |
|---|---|
| public static long longBitMask(int low, int high) Get a long bit mask consisting of 1 bits in the given range. The returned
| |
| longFromBytesBE | back to summary |
|---|---|
| public static long longFromBytesBE(byte[] b, int off) Get a 64-bit signed big-endian long value from a byte array.
| |
| longFromBytesLE | back to summary |
|---|---|
| public static long longFromBytesLE(byte[] b, int off) Get a 64-bit signed little-endian long value from a byte array.
| |
| mediumFromBytesBE | back to summary |
|---|---|
| public static int mediumFromBytesBE(byte[] b, int off) Get a 24-bit signed big-endian int value from a byte array.
| |
| mediumFromBytesLE | back to summary |
|---|---|
| public static int mediumFromBytesLE(byte[] b, int off) Get a 24-bit signed little-endian int value from a byte array.
| |
| shortFromBytesBE | back to summary |
|---|---|
| public static short shortFromBytesBE(byte[] b, int off) Get a 16-bit signed big-endian short value from a byte array.
| |
| shortFromBytesLE | back to summary |
|---|---|
| public static short shortFromBytesLE(byte[] b, int off) Get a 16-bit signed little-endian short value from a byte array.
| |
| unsigned | back to summary |
|---|---|
| public static int unsigned(byte v) Convert a signed value to unsigned.
| |
| unsigned | back to summary |
|---|---|
| public static int unsigned(short v) Convert a signed value to unsigned.
| |
| unsigned | back to summary |
|---|---|
| public static long unsigned(int v) Convert a signed value to unsigned.
| |