Decompressor class.
More...
#include <Decompressor.h>
|
void * | stream |
|
size_t | cap = 0 |
| Represents allocated buffer size.
|
|
size_t | length = 0 |
| Represents filled buffer size.
|
|
size_t | read = 0 |
| Represents read portion of the buffer.
|
|
unsigned char * | buffer |
| Internal buffer.
|
|
◆ OutputStream
◆ Decompressor()
Create a decompressor
- Parameters
-
type | Compression format |
buffer_size | Set internal buffer size |
References buffer, cap, and stream.
◆ ~Decompressor()
sese::Decompressor::~Decompressor |
( |
| ) |
|
|
virtual |
◆ getTotalIn()
size_t sese::Decompressor::getTotalIn |
( |
| ) |
const |
|
nodiscard |
Size of the currently processed input buffer
- Returns
- Buffer size
◆ getTotalOut()
size_t sese::Decompressor::getTotalOut |
( |
| ) |
const |
|
nodiscard |
Size of the currently processed output buffer
- Returns
- Buffer size
References read().
◆ inflate()
Perform decompression
- Parameters
-
- Return values
-
Z_OK | (0) Current buffer block decompressed successfully |
Z_STREAM_ERROR | (-2) Other errors |
Z_BUF_ERROR | (-5) Output stream capacity insufficient |
References read(), and sese::io::OutputStream::write().
◆ input()
void sese::Decompressor::input |
( |
const void * | input, |
|
|
unsigned int | input_size ) |
Set the buffer to be decompressed
- Parameters
-
input | Buffer to be decompressed |
input_size | Size of this buffer |
◆ reset()
int sese::Decompressor::reset |
( |
| ) |
|
Reset z_stream object.
References read().
◆ buffer
unsigned char* sese::Decompressor::buffer |
|
private |
◆ cap
size_t sese::Decompressor::cap = 0 |
|
private |
◆ length
size_t sese::Decompressor::length = 0 |
|
private |
Represents filled buffer size.
◆ read
size_t sese::Decompressor::read = 0 |
|
private |
Represents read portion of the buffer.
◆ stream
void* sese::Decompressor::stream |
|
private |
The documentation for this class was generated from the following files: