The class that provides methods for compressing input raw data by the blocks. *.
More...
◆ CompressionStream() [1/2]
CompressionStream constructor
- Parameters
-
context | Context to manage created compression algorithm |
compressor | Compressor object used for the compression |
◆ CompressionStream() [2/2]
CompressionStream constructor
- Parameters
-
context | Context to manage created compression algorithm |
compressor | Compressor object used for the compression |
minSize | Minimal size of the internal data blocks |
◆ add() [1/2]
void add |
( |
byte [] |
inBlock, |
|
|
long |
inSize |
|
) |
| |
Writes next data block to the CompressionStream and compresses it
- Parameters
-
inBlock | Data block to be compressed |
inSize | Size in bytes of the data block to be compressed |
◆ add() [2/2]
void add |
( |
byte [] |
inBlock | ) |
|
Writes next data block to the CompressionStream and compresses it
- Parameters
-
inBlock | Data block to be compressed |
◆ copyCompressedArray() [1/2]
long copyCompressedArray |
( |
byte [] |
outBlock, |
|
|
long |
outSize |
|
) |
| |
Copies compressed data stored in the CompressionStream to external array
- Parameters
-
outBlock | Array where compressed data is stored |
outSize | Number of bytes available in the array |
- Returns
- Size of copied data in bytes
◆ copyCompressedArray() [2/2]
long copyCompressedArray |
( |
byte [] |
outBlock | ) |
|
Copies compressed data stored in the CompressionStream to external array
- Parameters
-
outBlock | Array where compressed data is stored |
- Returns
- Size of copied data in bytes
◆ dispose()
◆ getCompressedDataSize()
long getCompressedDataSize |
( |
| ) |
|
Returns size of the compressed data stored in the CompressionStream
- Returns
- Size in bytes
The documentation for this class was generated from the following file: