public static class HCompressor.ByteHCompressor extends HCompressor<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(ByteBuffer buffer,
ByteBuffer compressed)
compress the buffer into the byte buffer.
|
void |
decompress(ByteBuffer compressed,
ByteBuffer buffer)
Decompress the byte buffer and restore the buffer from it, again enough
space must already be allocated.
|
compress, decompress
public ByteHCompressor(HCompressorOption options)
public boolean compress(ByteBuffer buffer, ByteBuffer compressed)
ICompressor
buffer
- the buffer to compress.compressed
- the compressed datapublic void decompress(ByteBuffer compressed, ByteBuffer buffer)
ICompressor
compressed
- the compressed databuffer
- the buffer to fill with the uncompressed data.Copyright © 1996–2016 nom-tam-fits. All rights reserved.