public final class RunningLengthWord extends Object
Modifier and Type | Field and Description |
---|---|
long[] |
array
The array of words.
|
static int |
largestliteralcount
largest number of literal words in a run.
|
static long |
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.
|
long |
getRunningLength()
Gets the running length.
|
void |
setNumberOfLiteralWords(long number)
Sets the number of literal words.
|
void |
setRunningBit(boolean b)
Sets the running bit.
|
void |
setRunningLength(long number)
Sets the running length.
|
long |
size()
Return the size in uncompressed words represented by
this running length word.
|
String |
toString() |
public long[] array
public int position
public static final int runninglengthbits
public static final int largestliteralcount
public static final long largestrunninglengthcount
public int getNumberOfLiteralWords()
public boolean getRunningBit()
public long getRunningLength()
public void setNumberOfLiteralWords(long number)
number
- the new number of literal wordspublic void setRunningBit(boolean b)
b
- the new running bitpublic void setRunningLength(long number)
number
- the new running lengthpublic long size()
Copyright © 2013. All rights reserved.