public final class BitFieldUtil
extends java.lang.Object
| Constructor and Description |
|---|
BitFieldUtil() |
| Modifier and Type | Method and Description |
|---|---|
static long |
getBitFieldLowerBound(int length,
boolean isSigned)
Gets the lower bound of a bitfield type with given length.
|
static long |
getBitFieldUpperBound(int length,
boolean isSigned)
Gets the upper bound of a bitfield type with given length.
|
public static long getBitFieldLowerBound(int length,
boolean isSigned)
length - Length of the bitfield in bits.isSigned - True if it's a signed bitfield, false otherwise.public static long getBitFieldUpperBound(int length,
boolean isSigned)
length - Length of the bitfield in bits.isSigned - True if it's a signed bitfield, false otherwise.Last updated 2025-10-02 14:26:25