Represents sink implementation which splits source data into chunks with specified size.
More...
#include <BinarySink.hpp>
|
| Chunk (size_t chunkSize=std::numeric_limits< size_t >::max()) |
| Constructor. More...
|
|
void | write (const void *data, uint64_t size) override |
| Writes data into the sink. More...
|
|
virtual | ~BinarySink ()=default |
|
|
virtual void | writeChunk (const void *data, size_t size)=0 |
| Writes chunk of the data. More...
|
|
Represents sink implementation which splits source data into chunks with specified size.
◆ Chunk()
◆ write()
void CppMate::BinarySink::Chunk::write |
( |
const void * |
data, |
|
|
uint64_t |
size |
|
) |
| |
|
inlineoverridevirtual |
Writes data into the sink.
- Parameters
-
data | the pointer to data. |
size | the size of data. |
- Exceptions
-
std::invalid_argument,std::ostream::failure | |
Implements CppMate::BinarySink.
◆ writeChunk()
virtual void CppMate::BinarySink::Chunk::writeChunk |
( |
const void * |
data, |
|
|
size_t |
size |
|
) |
| |
|
protectedpure virtual |
The documentation for this class was generated from the following file: