ZLIB inflater.
More...
#include <base/compression/ZLibInflater.h>
Inherits Object, and Inflater.
ZLIB inflater.
ZLIB inflater push stream.
- Version
- 1.0
◆ ZLibInflater()
ZLibInflater::ZLibInflater |
( |
| ) |
|
Initializes the inflater.
◆ ~ZLibInflater()
virtual ZLibInflater::~ZLibInflater |
( |
| ) |
|
|
virtualnoexcept |
◆ atEnd()
bool ZLibInflater::atEnd |
( |
| ) |
const |
|
inlinevirtualnoexcept |
Returns true if the end has been reached. This may return true before pushEnd() has been invoked if the compressed data has been padded with garbage.
Implements Inflater.
◆ pull()
MemorySize ZLibInflater::pull |
( |
uint8 * |
buffer, |
|
|
MemorySize |
size |
|
) |
| |
|
virtual |
Pulls decompressed data from the stream. EndOfFile is raised if atEnd() would return true.
- Parameters
-
buffer | The buffer to receive the data. |
size | The size of the buffer. |
- Returns
- The number of bytes pulled.
Implements PullInterface.
◆ push()
MemorySize ZLibInflater::push |
( |
const uint8 * |
buffer, |
|
|
MemorySize |
size |
|
) |
| |
|
virtual |
Pushes compressed data onto the stream. This method may return 0 if the internal buffer is full. EndOfFile is raised if the end has been reached. IOException is raised unless the inflater is in the normal decompression mode.
- Parameters
-
buffer | The data to be pushed onto the stream. |
size | The size of the buffer. |
- Returns
- The number of bytes pushed.
Implements PushInterface.
◆ pushEnd()
void ZLibInflater::pushEnd |
( |
| ) |
|
|
virtual |
This method should be invoked when all compressed data has been pushed onto the stream. Do not invoke push() or pushEnd() hereafter.
Reimplemented from PushInterface.
◆ BUFFER_SIZE
const unsigned int ZLibInflater::BUFFER_SIZE = 64 * 1024 |
|
static |
The size of the decompression buffer.