|
| | Compressor (STREAM_READER reader, void *handle, bool gzip, int level=-1) |
| | Compressor (const char *input, size_t len, bool gzip, int level=-1) |
| 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, int level) |
Definition at line 33 of file compressor.h.
◆ STREAM_READER
| typedef int(* NSROOT::Compressor::STREAM_READER) (void *handle, void *buf, int sz) |
◆ anonymous enum
◆ Compressor() [1/2]
| Compressor::Compressor |
( |
STREAM_READER | reader, |
|
|
void * | handle, |
|
|
bool | gzip, |
|
|
int | level = -1 ) |
◆ Compressor() [2/2]
| Compressor::Compressor |
( |
const char * | input, |
|
|
size_t | len, |
|
|
bool | gzip, |
|
|
int | level = -1 ) |
◆ ~Compressor()
| Compressor::~Compressor |
( |
| ) |
|
|
virtual |
◆ _init()
| int Compressor::_init |
( |
void * | zp, |
|
|
void * | out, |
|
|
size_t | len, |
|
|
int | wbits, |
|
|
int | level ) |
|
staticprivate |
◆ FetchOutput()
| size_t Compressor::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 186 of file compressor.cpp.
◆ HasBufferError()
| bool Compressor::HasBufferError |
( |
| ) |
|
Data cannot be read from input.
- Returns
- Input status
Definition at line 121 of file compressor.cpp.
◆ HasOutputData()
| bool NSROOT::Compressor::HasOutputData |
( |
| ) |
|
|
inline |
More data can be read from output stream.
- Returns
- Output status
Definition at line 46 of file compressor.h.
◆ HasStreamError()
| bool Compressor::HasStreamError |
( |
| ) |
|
Data error occurred from stream.
- Returns
- stream status
Definition at line 126 of file compressor.cpp.
◆ IsCompleted()
| bool Compressor::IsCompleted |
( |
| ) |
|
Output stream is completed.
- Returns
- Output stream status
Definition at line 116 of file compressor.cpp.
◆ NextChunk()
| size_t Compressor::NextChunk |
( |
| ) |
|
|
private |
◆ ReadOutput()
| size_t Compressor::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 139 of file compressor.cpp.
◆ _opaque
| void* NSROOT::Compressor::_opaque |
|
private |
◆ m_chunk_size
| size_t NSROOT::Compressor::m_chunk_size |
|
private |
◆ m_flush
| int NSROOT::Compressor::m_flush |
|
private |
◆ m_input
| const char* NSROOT::Compressor::m_input |
|
private |
◆ m_input_len
| size_t NSROOT::Compressor::m_input_len |
|
private |
◆ m_output
| char* NSROOT::Compressor::m_output |
|
private |
◆ m_output_len
| size_t NSROOT::Compressor::m_output_len |
|
private |
◆ m_output_pos
| size_t NSROOT::Compressor::m_output_pos |
|
private |
◆ m_rstream
| STREAM_READER NSROOT::Compressor::m_rstream |
|
private |
◆ m_rstream_buf
| char* NSROOT::Compressor::m_rstream_buf |
|
private |
◆ m_rstream_hdl
| void* NSROOT::Compressor::m_rstream_hdl |
|
private |
◆ m_status
| int NSROOT::Compressor::m_status |
|
private |
◆ m_stop
| bool NSROOT::Compressor::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