zlib stream buffer.
More...
#include <zstream.hpp>
|
| virtual int_type | underflow () override |
| | reads characters from the associated input sequence to the get area.
|
| |
| virtual int_type | overflow (int_type c=traits_type::eof()) override |
| | writes characters to the associated output sequence from the put area.
|
| |
| virtual int_type | sync () override |
| | synchronizes the buffers with the associated character sequence.
|
| |
|
| std::unique_ptr< z_stream > | _inflate |
| | inflate context.
|
| |
| int | _instate = Z_OK |
| | inflate state.
|
| |
| std::unique_ptr< z_stream > | _deflate |
| | deflate context.
|
| |
| std::unique_ptr< char[]> | _buf |
| | internal buffer.
|
| |
| std::streambuf * | _innerbuf |
| | concrete stream buffer.
|
| |
| bool | _own = false |
| | own inner stream buffer.
|
| |
|
| static const std::streamsize | _bufsize = 16384 |
| | internal buffer size.
|
| |
◆ Zstreambuf() [1/3]
| Zstreambuf::Zstreambuf |
( |
std::streambuf * | streambuf, |
|
|
int | format, |
|
|
bool | own = false ) |
create the zlib stream buffer instance.
- Parameters
-
| streambuf | concrete stream buffer |
| format | compressed data format. |
| own | is the decorator owning inner stream buffer. |
◆ Zstreambuf() [2/3]
| join::Zstreambuf::Zstreambuf |
( |
const Zstreambuf & | other | ) |
|
|
delete |
copy constructor.
- Parameters
-
| other | other object to copy. |
◆ Zstreambuf() [3/3]
move constructor.
- Parameters
-
| other | other object to move. |
◆ ~Zstreambuf()
| Zstreambuf::~Zstreambuf |
( |
| ) |
|
|
virtual |
destroy the zlib stream buffer instance.
◆ operator=() [1/2]
copy assignment operator.
- Parameters
-
| other | other object to assign. |
- Returns
- current object.
◆ operator=() [2/2]
move assignment operator.
- Parameters
-
| other | other object to assign. |
- Returns
- current object.
◆ overflow()
| Zstreambuf::int_type Zstreambuf::overflow |
( |
int_type | c = traits_type::eof () | ) |
|
|
overrideprotectedvirtual |
writes characters to the associated output sequence from the put area.
- Parameters
-
| c | the character to store in the put area. |
- Returns
- EOF on failure, some other value on success.
◆ sync()
| Zstreambuf::int_type Zstreambuf::sync |
( |
| ) |
|
|
overrideprotectedvirtual |
synchronizes the buffers with the associated character sequence.
- Returns
- EOF on failure, some other value on success.
◆ underflow()
| Zstreambuf::int_type Zstreambuf::underflow |
( |
| ) |
|
|
overrideprotectedvirtual |
reads characters from the associated input sequence to the get area.
- Returns
- the value of the character pointed to by the get pointer after the call on success, EOF otherwise.
◆ _buf
| std::unique_ptr<char []> join::Zstreambuf::_buf |
|
protected |
◆ _bufsize
| const std::streamsize join::Zstreambuf::_bufsize = 16384 |
|
staticprotected |
◆ _deflate
| std::unique_ptr<z_stream> join::Zstreambuf::_deflate |
|
protected |
◆ _inflate
| std::unique_ptr<z_stream> join::Zstreambuf::_inflate |
|
protected |
◆ _instate
| int join::Zstreambuf::_instate = Z_OK |
|
protected |
The documentation for this class was generated from the following files: