cpp-mate  0.7
Helpful library for C++.
CppMate::BinarySink Class Referenceabstract

Represents low-level interface of abstract binary sink. More...

#include <BinarySink.hpp>

Inheritance diagram for CppMate::BinarySink:

Classes

class  Chunk
 Represents sink implementation which splits source data into chunks with specified size. More...
 
class  Closeable
 Represents closable extension of the BinarySink interface. More...
 
class  Counter
 Represents sink implementation which splits source data into chunks with specified size. More...
 
class  Memory
 Represents binary sink to memory. More...
 
class  Null
 Represents sink which just ignore all input data. More...
 

Public Member Functions

virtual ~BinarySink ()=default
 
virtual void write (const void *data, uint64_t size)=0
 Writes data into the sink. More...
 

Detailed Description

Represents low-level interface of abstract binary sink.

Constructor & Destructor Documentation

◆ ~BinarySink()

virtual CppMate::BinarySink::~BinarySink ( )
virtualdefault

Default destructor.

Member Function Documentation

◆ write()

virtual void CppMate::BinarySink::write ( const void *  data,
uint64_t  size 
)
pure virtual

Writes data into the sink.

Parameters
datathe pointer to data.
sizethe size of data.
Exceptions
std::invalid_argument,std::ostream::failure

Implemented in CppMate::BinarySink::Null, CppMate::BinarySink::Counter, and CppMate::BinarySink::Chunk.


The documentation for this class was generated from the following file: