public class BitInputStore extends Object
Constructor and Description |
---|
BitInputStore(byte[] input)
Construct a reader that will extract bits from the specified input.
|
BitInputStore(byte[] input,
int offset,
int length)
Construct a reader that will extract bits from the specified input.
|
Modifier and Type | Method and Description |
---|---|
int |
getBit()
Gets a single bit to the bit-writer content.
|
int |
getBits(int nBitsInValue)
Gets the specified number of bits from the context
|
int |
getPosition()
Gets the current bit position within the input store.
|
public BitInputStore(byte[] input)
input
- a valid array of bytes storing the content.public BitInputStore(byte[] input, int offset, int length)
input
- a valid array of bytes storing the content.offset
- the starting offset within the inputlength
- the number of bytes from the input that are valid;
it is assumed that input is at least length+offset bytes long.public int getBit()
public int getBits(int nBitsInValue)
nBitsInValue
- number of bits in the range 1 to 32.public int getPosition()
Copyright © 2022. All rights reserved.