chunk stream buffer.
More...
#include <chunkstream.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::streamsize | _chunksize = 16384 |
| | chunk size.
|
| |
| std::unique_ptr< char[]> | _buf |
| | internal buffer.
|
| |
| std::streambuf * | _innerbuf |
| | concrete stream buffer.
|
| |
| bool | _own = false |
| | own inner stream buffer.
|
| |
◆ Chunkstreambuf() [1/4]
| Chunkstreambuf::Chunkstreambuf |
( |
std::streambuf * | streambuf, |
|
|
bool | own = false ) |
create the chunk stream buffer instance.
- Parameters
-
| streambuf | concrete stream buffer. |
| own | is the decorator owning inner stream buffer. |
◆ Chunkstreambuf() [2/4]
| Chunkstreambuf::Chunkstreambuf |
( |
std::streambuf * | streambuf, |
|
|
std::streamsize | chunksize, |
|
|
bool | own = false ) |
create the chunk stream buffer instance.
- Parameters
-
| streambuf | concrete stream buffer. |
| chunksize | chunk size. |
| own | is the decorator owning inner stream buffer. |
◆ Chunkstreambuf() [3/4]
copy constructor.
- Parameters
-
| other | other object to copy. |
◆ Chunkstreambuf() [4/4]
move constructor.
- Parameters
-
| other | other object to move. |
◆ ~Chunkstreambuf()
| Chunkstreambuf::~Chunkstreambuf |
( |
| ) |
|
|
virtual |
destroy the chunk stream buffer instance.
◆ operator=() [1/2]
move assignment operator.
- Parameters
-
| other | other object to assign. |
- Returns
- current object.
◆ operator=() [2/2]
copy assignment operator.
- Parameters
-
| other | other object to assign. |
- Returns
- current object.
◆ overflow()
| Chunkstreambuf::int_type Chunkstreambuf::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()
| Chunkstreambuf::int_type Chunkstreambuf::sync |
( |
| ) |
|
|
overrideprotectedvirtual |
synchronizes the buffers with the associated character sequence.
- Returns
- EOF on failure, some other value on success.
◆ underflow()
| Chunkstreambuf::int_type Chunkstreambuf::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::Chunkstreambuf::_buf |
|
protected |
◆ _chunksize
| std::streamsize join::Chunkstreambuf::_chunksize = 16384 |
|
protected |
The documentation for this class was generated from the following files: