public class SkippableComposition extends Object implements SkippableIntegerCODEC
Constructor and Description |
---|
SkippableComposition(SkippableIntegerCODEC f1,
SkippableIntegerCODEC f2)
Compose a scheme from a first one (f1) and a second one (f2).
|
Modifier and Type | Method and Description |
---|---|
void |
headlessCompress(int[] in,
IntWrapper inpos,
int inlength,
int[] out,
IntWrapper outpos)
Compress data from an array to another array.
|
void |
headlessUncompress(int[] in,
IntWrapper inpos,
int inlength,
int[] out,
IntWrapper outpos,
int num)
Uncompress data from an array to another array.
|
String |
toString() |
public SkippableComposition(SkippableIntegerCODEC f1, SkippableIntegerCODEC f2)
f1
- first codecf2
- second codecpublic void headlessCompress(int[] in, IntWrapper inpos, int inlength, int[] out, IntWrapper outpos)
SkippableIntegerCODEC
headlessCompress
in interface SkippableIntegerCODEC
in
- input arrayinpos
- location in the input arrayinlength
- how many integers to compressout
- output arrayoutpos
- where to write in the output arraypublic void headlessUncompress(int[] in, IntWrapper inpos, int inlength, int[] out, IntWrapper outpos, int num)
SkippableIntegerCODEC
headlessUncompress
in interface SkippableIntegerCODEC
in
- array containing data in compressed forminpos
- where to start reading in the arrayinlength
- length of the compressed data (ignored by some schemes)out
- array where to write the compressed outputoutpos
- where to write the compressed output in outnum
- number of integers we want to decode, the actual number of integers decoded can be lessCopyright © 2016. All Rights Reserved.