Class HCompressor.IntHCompressor

  • All Implemented Interfaces:
    ICompressor<java.nio.IntBuffer>
    Enclosing class:
    HCompressor<T extends java.nio.Buffer>

    public static class HCompressor.IntHCompressor
    extends HCompressor<java.nio.IntBuffer>
    • Method Detail

      • compress

        public boolean compress​(java.nio.IntBuffer buffer,
                                java.nio.ByteBuffer compressed)
        Description copied from interface: ICompressor
        compress the buffer into the byte buffer. Attention enough space must already be allocated.
        Parameters:
        buffer - the buffer to compress.
        compressed - the compressed data
        Returns:
        true if the compression succeeded.
      • decompress

        public void decompress​(java.nio.ByteBuffer compressed,
                               java.nio.IntBuffer buffer)
        Description copied from interface: ICompressor
        Decompress the byte buffer and restore the buffer from it, again enough space must already be allocated.
        Parameters:
        compressed - the compressed data
        buffer - the buffer to fill with the uncompressed data.