Java* API Reference for Intel® Data Analytics Acceleration Library 2018 Update 2

List of all members
Compression Class Reference

The base class that provides methods for the compression and decompression operation. More...

Class Constructor

◆ Compression()

Compression ( DaalContext  context)

Constructs the compression algorithm

Parameters
contextContext to manage the compression algorithm

Detailed Description

References

Member Function Documentation

◆ checkInputParams() [1/2]

void checkInputParams ( byte []  inBlock,
long  size 
)

Checks of the input stream parameters

Parameters
inBlockInput data block
sizeSize in bytes of the input data block

◆ checkInputParams() [2/2]

void checkInputParams ( byte []  inBlock)

Checks of the input stream parameters

Parameters
inBlockInput data block

◆ checkOutputParams() [1/2]

void checkOutputParams ( byte []  outBlock,
long  size 
)

Checks of the output stream parameters

Parameters
outBlockOutput data block
sizeSize in bytes of the output data block

◆ checkOutputParams() [2/2]

void checkOutputParams ( byte []  outBlock)

Checks of the output stream parameters

Parameters
outBlockOutput data block

◆ dispose()

void dispose ( )

Releases memory allocated for the native Compression object

Implements Disposable.

◆ getUsedOutputDataBlockSize()

long getUsedOutputDataBlockSize ( )

Returns the number of bytes used after run() method was called

Returns
Number of used bytes

◆ isOutputDataBlockFull()

boolean isOutputDataBlockFull ( )

Reports whether output data block is full after run() method was called

Returns
True if output data block is full, false otherwise

◆ run()

void run ( byte []  outBlock,
long  size,
long  offset 
)

Performs the compression(or decompression) of the data block

Parameters
outBlockData block where compression(or decompression) results to be stored. Must be at least size+offset bytes
sizeNumber of bytes available in outBlock
offsetOffset in bytes, the starting position for the compression(or decompression) in outBlock

◆ setInputDataBlock() [1/3]

void setInputDataBlock ( byte []  inBlock,
long  srcSize,
long  offset 
)

Associates input data block with the Compressor(or Decompressor)

Parameters
inBlockData block to compress(or decompress). Must be at least srcSize+offset bytes
srcSizeThe number of bytes to compress(or decompress) in the inBlock
offsetOffset in bytes, the starting position for the compression(or decompression) in inBlock

◆ setInputDataBlock() [2/3]

void setInputDataBlock ( byte []  inBlock,
long  offset 
)

Associates input data block with the Compressor(or Decompressor)

Parameters
inBlockData block to compress(or decompress)
offsetOffset in bytes, the starting position for the compression(or decompression) in inBlock

◆ setInputDataBlock() [3/3]

void setInputDataBlock ( byte []  inBlock)

Associates input data block with the compressor(or decompressor)

Parameters
inBlockData block to compress(or decompress)

The documentation for this class was generated from the following file:

For more complete information about compiler optimizations, see our Optimization Notice.