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