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