|
| | Decompressor (STREAM_READER reader, void *handle, bool gzip) |
| | Decompressor (const char *input, size_t len, bool gzip) |
| bool | HasOutputData () |
| | More data can be read from output stream.
|
| bool | IsCompleted () |
| | Output stream is completed.
|
| bool | HasBufferError () |
| | Data cannot be read from input.
|
| bool | HasStreamError () |
| | Data error occurred from stream.
|
| size_t | ReadOutput (char *buf, size_t len) |
| | Copy data from output stream to the given pointer until size limit.
|
| size_t | FetchOutput (const char **data) |
| | Fetch next chunk of data from output stream. No copy of data is performed and result can be used as is.
|
|
| enum | { MEM_BUFFER
, FCB_READER
} |
|
| static int | _init (void *zp, void *out, size_t len, int wbits) |
Definition at line 112 of file compressor.h.
◆ STREAM_READER
| typedef int(* NSROOT::Decompressor::STREAM_READER) (void *handle, void *buf, int sz) |
◆ anonymous enum
◆ Decompressor() [1/2]
| Decompressor::Decompressor |
( |
STREAM_READER | reader, |
|
|
void * | handle, |
|
|
bool | gzip ) |
◆ Decompressor() [2/2]
| Decompressor::Decompressor |
( |
const char * | input, |
|
|
size_t | len, |
|
|
bool | gzip ) |
◆ ~Decompressor()
| Decompressor::~Decompressor |
( |
| ) |
|
|
virtual |
◆ _init()
| int Decompressor::_init |
( |
void * | zp, |
|
|
void * | out, |
|
|
size_t | len, |
|
|
int | wbits ) |
|
staticprivate |
◆ FetchOutput()
| size_t Decompressor::FetchOutput |
( |
const char ** | data | ) |
|
Fetch next chunk of data from output stream. No copy of data is performed and result can be used as is.
- Parameters
-
| data | pointer to const data pointer |
- Returns
- the byte count available from the pointer to const data
Definition at line 435 of file compressor.cpp.
◆ HasBufferError()
| bool Decompressor::HasBufferError |
( |
| ) |
|
Data cannot be read from input.
- Returns
- Input status
Definition at line 370 of file compressor.cpp.
◆ HasOutputData()
| bool NSROOT::Decompressor::HasOutputData |
( |
| ) |
|
|
inline |
More data can be read from output stream.
- Returns
- Output status
Definition at line 125 of file compressor.h.
◆ HasStreamError()
| bool Decompressor::HasStreamError |
( |
| ) |
|
Data error occurred from stream.
- Returns
- stream status
Definition at line 375 of file compressor.cpp.
◆ IsCompleted()
| bool Decompressor::IsCompleted |
( |
| ) |
|
Output stream is completed.
- Returns
- Output stream status
Definition at line 365 of file compressor.cpp.
◆ NextChunk()
| size_t Decompressor::NextChunk |
( |
| ) |
|
|
private |
◆ ReadOutput()
| size_t Decompressor::ReadOutput |
( |
char * | buf, |
|
|
size_t | len ) |
Copy data from output stream to the given pointer until size limit.
- Parameters
-
| buf | pointer to copy data |
| len | max length of data |
- Returns
- lenght of copied data
Definition at line 388 of file compressor.cpp.
◆ _opaque
| void* NSROOT::Decompressor::_opaque |
|
private |
◆ m_chunk_size
| size_t NSROOT::Decompressor::m_chunk_size |
|
private |
◆ m_input
| const char* NSROOT::Decompressor::m_input |
|
private |
◆ m_input_len
| size_t NSROOT::Decompressor::m_input_len |
|
private |
◆ m_output
| char* NSROOT::Decompressor::m_output |
|
private |
◆ m_output_len
| size_t NSROOT::Decompressor::m_output_len |
|
private |
◆ m_output_pos
| size_t NSROOT::Decompressor::m_output_pos |
|
private |
◆ m_rstream
| STREAM_READER NSROOT::Decompressor::m_rstream |
|
private |
◆ m_rstream_buf
| char* NSROOT::Decompressor::m_rstream_buf |
|
private |
◆ m_rstream_hdl
| void* NSROOT::Decompressor::m_rstream_hdl |
|
private |
◆ m_status
| int NSROOT::Decompressor::m_status |
|
private |
◆ m_stop
| bool NSROOT::Decompressor::m_stop |
|
private |
The documentation for this class was generated from the following files:
- /home/jlb/src/janbar/PVR/cppmythlib/cppmyth/src/private/compressor.h
- /home/jlb/src/janbar/PVR/cppmythlib/cppmyth/src/private/compressor.cpp