@Deprecated public class EncodedElement_32 extends EncodedElement
offset
Constructor and Description |
---|
EncodedElement_32()
Deprecated.
|
EncodedElement_32(int size,
int off)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
EncodedElement |
addInt(int input,
int bitCount)
Deprecated.
Add a number of bits from an int to the end of this list's data.
|
static void |
addInt(int value,
int count,
int startPos,
int[] dest)
Deprecated.
This method adds a given number of bits of an int to a byte array.
|
void |
clear(int size,
int off)
Deprecated.
Completely clear this element and use the given size and offset for the
new data array.
|
EncodedElement |
convertToEncodedElement()
Deprecated.
|
byte[] |
getData()
Deprecated.
Get the byte array stored by this object(null if not set).
|
int[] |
getData32()
Deprecated.
|
EncodedElement |
packIntByBits(int[] inputA,
int[] inputBits,
int inputOffset,
int countA)
Deprecated.
Pack a number of bits from each int of an array(within given limits)to
the end of this list.
|
static void |
packIntByBits(int[] inputA,
int[] inputBits,
int inputOffset,
int countA,
int startPosIn,
int[] dest)
Deprecated.
Pack a number of bits from each int of an array(within given limits)to
the end of this list.
|
addInt_new, addLong, attachEnd, cleanInts, clear, compressIntArrayByBits, getCRC16, getEnd_S, getEnd, getTotalBits, mergeFullOnByte, packInt, packIntByBits, packIntByBitsToByteBoundary, padToByte, print, print
public EncodedElement_32()
public EncodedElement_32(int size, int off)
public void clear(int size, int off)
EncodedElement
clear
in class EncodedElement
size
- Size of data array to use(in bytes)off
- Offset to use for this element. Usablebits will also be set to
this value.public static void addInt(int value, int count, int startPos, int[] dest)
value
- int to store bits fromcount
- number of low-order bits to storestartPos
- start bit location in array to begin writingdest
- array to store bits in. dest MUST have enough space to store
the given data, or this function will fail.public int[] getData32()
public static void packIntByBits(int[] inputA, int[] inputBits, int inputOffset, int countA, int startPosIn, int[] dest)
inputA
- Array containing input values.inputBits
- Array containing number of bits to use for each index
packed. This array should be equal in size to the inputA array.inputOffset
- Index of first usable index.countA
- Number of indices to pack.startPosIn
- First usable bit-level index in destination array(byte
index = startPosIn/8, bit within that byte = startPosIn%8)dest
- Destination array to store input values in. This array *must*
be large enough to store all values or this method will fail in an
undefined manner.public EncodedElement packIntByBits(int[] inputA, int[] inputBits, int inputOffset, int countA)
packIntByBits
in class EncodedElement
inputA
- Array containing input values.inputBits
- Array containing number of bits to use for each index
packed. This array should be equal in size to the inputA array.inputOffset
- Index of first usable index.countA
- Number of indices to pack.public byte[] getData()
EncodedElement
public EncodedElement convertToEncodedElement()
public EncodedElement addInt(int input, int bitCount)
addInt
in class EncodedElement
input
- Int containing bits to append to end.bitCount
- Number of bits to append.