The class that provides methods for compressing input raw data by the blocks. *.
More...
CompressionStream constructor
- Parameters
-
context | Context to manage created compression algorithm |
compressor | Compressor object used for the compression |
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 |
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 |
void add |
( |
byte[] |
inBlock | ) |
|
Writes next data block to the CompressionStream and compresses it
- Parameters
-
inBlock | Data block to be compressed |
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
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
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: