Class FQZUtils
java.lang.Object
htsjdk.samtools.cram.compression.fqzcomp.FQZUtils
Utility methods for FQZComp table serialization. Tables (qtab, ptab, dtab, stab) are stored
using a two-level run-length encoding scheme where values are sequential from 0.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidreadArray(ByteBuffer inBuffer, int[] table, int size) Read a table from a two-level run-length encoded stream.
-
Constructor Details
-
FQZUtils
public FQZUtils()
-
-
Method Details
-
readArray
Read a table from a two-level run-length encoded stream. The encoding first stores run lengths for each successive value (0, 1, 2, ...), using 255 as a continuation marker. A second RLE level compresses consecutive identical run-length values.- Parameters:
inBuffer- the input stream to read fromtable- output array to populate with decoded valuessize- number of elements to decode into the table
-