public static class HCompressor.ByteHCompressor extends HCompressor<java.nio.ByteBuffer>
HCompressor.ByteHCompressor, HCompressor.DoubleHCompressor, HCompressor.FloatHCompressor, HCompressor.IntHCompressor, HCompressor.ShortHCompressor| Constructor and Description |
|---|
ByteHCompressor(HCompressorOption options) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compress(java.nio.ByteBuffer buffer,
java.nio.ByteBuffer compressed)
compress the buffer into the byte buffer.
|
void |
decompress(java.nio.ByteBuffer compressed,
java.nio.ByteBuffer buffer)
Decompress the byte buffer and restore the buffer from it, again enough
space must already be allocated.
|
compress, decompresspublic ByteHCompressor(HCompressorOption options)
public boolean compress(java.nio.ByteBuffer buffer,
java.nio.ByteBuffer compressed)
ICompressorbuffer - the buffer to compress.compressed - the compressed datapublic void decompress(java.nio.ByteBuffer compressed,
java.nio.ByteBuffer buffer)
ICompressorcompressed - the compressed databuffer - the buffer to fill with the uncompressed data.