Class HCompressor.IntHCompressor
java.lang.Object
nom.tam.fits.compression.algorithm.hcompress.HCompressor<IntBuffer>
nom.tam.fits.compression.algorithm.hcompress.HCompressor.IntHCompressor
- All Implemented Interfaces:
ICompressor<IntBuffer>
- Enclosing class:
- HCompressor<T extends Buffer>
-
Nested Class Summary
Nested classes/interfaces inherited from class nom.tam.fits.compression.algorithm.hcompress.HCompressor
HCompressor.ByteHCompressor, HCompressor.DoubleHCompressor, HCompressor.FloatHCompressor, HCompressor.IntHCompressor, HCompressor.ShortHCompressor
-
Constructor Summary
ConstructorsConstructorDescriptionHCompress of 32-bit integer streams with the default scale parameter of 0 and no smoothing for lossless compression.IntHCompressor
(HCompressorOption options) -
Method Summary
Modifier and TypeMethodDescriptionboolean
compress
(IntBuffer buffer, ByteBuffer compressed) compress the buffer into the byte buffer.void
decompress
(ByteBuffer compressed, IntBuffer buffer) Decompress the byte buffer and restore the buffer from it, again enough space must already be allocated.Methods inherited from class nom.tam.fits.compression.algorithm.hcompress.HCompressor
compress, decompress
-
Constructor Details
-
IntHCompressor
public IntHCompressor()HCompress of 32-bit integer streams with the default scale parameter of 0 and no smoothing for lossless compression.- Since:
- 1.19.1
-
IntHCompressor
-
-
Method Details
-
compress
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
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 databuffer
- the buffer to fill with the uncompressed data.
-