public static class IndexGenerator.BitString
extends java.lang.Object
Constructor and Description |
---|
IndexGenerator.BitString() |
Modifier and Type | Method and Description |
---|---|
void |
appendBits(byte b)
Appends all bits in a byte to the end of the bit string.
|
byte[] |
getBytes() |
int |
getLeadingAsInt(int numBits)
Returns up to 32 bits from the beginning of the bit string.
|
IndexGenerator.BitString |
getTrailing(int numBits)
Returns the last
numBits bits from the end of the bit string. |
public void appendBits(byte b)
b
- a bytepublic IndexGenerator.BitString getTrailing(int numBits)
numBits
bits from the end of the bit string.numBits
- number of bitsBitString
of length numBits
public int getLeadingAsInt(int numBits)
numBits
- number of bitsint
whose lower numBits
bits are the beginning of the bit stringpublic byte[] getBytes()