public final class RunningLengthWord32 extends Object
Modifier and Type | Field and Description |
---|---|
int[] |
array
The array of words.
|
static int |
largestliteralcount
largest number of literal words in a run.
|
static int |
largestrunninglengthcount
largest number of clean words in a run
|
int |
position
The position in array.
|
static int |
runninglengthbits
number of bits dedicated to marking of the running length of clean words
|
Modifier and Type | Method and Description |
---|---|
int |
getNumberOfLiteralWords()
Gets the number of literal words.
|
boolean |
getRunningBit()
Gets the running bit.
|
int |
getRunningLength()
Gets the running length.
|
void |
setNumberOfLiteralWords(int number)
Sets the number of literal words.
|
void |
setRunningBit(boolean b)
Sets the running bit.
|
void |
setRunningLength(int number)
Sets the running length.
|
int |
size()
Return the size in uncompressed words represented by
this running length word.
|
String |
toString() |
public int[] array
public int position
public static final int runninglengthbits
public static final int largestliteralcount
public static final int largestrunninglengthcount
public int getNumberOfLiteralWords()
public boolean getRunningBit()
public int getRunningLength()
public void setNumberOfLiteralWords(int number)
number
- the new number of literal wordspublic void setRunningBit(boolean b)
b
- the new running bitpublic void setRunningLength(int number)
number
- the new running lengthpublic int size()
Copyright © 2017. All rights reserved.