public interface ICompressor<T extends Buffer>
| Modifier and Type | Method and Description |
|---|---|
boolean |
compress(T buffer,
ByteBuffer compressed)
compress the buffer into the byte buffer.
|
void |
decompress(ByteBuffer compressed,
T buffer)
Decompress the byte buffer and restore the buffer from it, again enough
space must already be allocated.
|
boolean compress(T buffer, ByteBuffer compressed)
buffer - the buffer to compress.compressed - the compressed datavoid decompress(ByteBuffer compressed, T buffer)
compressed - the compressed databuffer - the buffer to fill with the uncompressed data.Copyright © 1996–2018 nom-tam-fits. All rights reserved.