rili::stream::BufferingFifoDuplex Class Referencefinal
Inheritance diagram for rili::stream::BufferingFifoDuplex:
Collaboration diagram for rili::stream::BufferingFifoDuplex:
Public Member Functions | |
BufferingFifoDuplex (BufferingFifoDuplex const &other)=default | |
BufferingFifoDuplex & | operator= (BufferingFifoDuplex const &other)=default |
BufferingFifoDuplex (BufferingFifoDuplex &&other)=default | |
BufferingFifoDuplex & | operator= (BufferingFifoDuplex &&other)=default |
void | consume (std::size_t size) override |
view::Base const & | readableView () const override |
view::Base const & | writableView () const override |
std::exception_ptr | pull (std::size_t count) override |
void | write (char const *data, std::size_t size) override |
std::exception_ptr | flush () override |
Public Member Functions inherited from rili::stream::Duplex | |
Duplex (Duplex const &other)=delete | |
Duplex & | operator= (Duplex const &other)=delete |
Public Member Functions inherited from rili::stream::Readable | |
void | read (unsigned char *data, std::size_t size) |
void | read (char *data, std::size_t size) |
void | read (unsigned char &c) |
void | read (char &c) |
OperationResult | operator>> (char &v) |
OperationResult | operator>> (unsigned char &v) |
OperationResult | operator>> (short &v) |
OperationResult | operator>> (unsigned short &v) |
OperationResult | operator>> (long &v) |
OperationResult | operator>> (unsigned long &v) |
OperationResult | operator>> (long long &v) |
OperationResult | operator>> (unsigned long long &v) |
OperationResult | operator>> (int &v) |
OperationResult | operator>> (unsigned int &v) |
OperationResult | operator>> (float &v) |
OperationResult | operator>> (double &v) |
OperationResult | operator>> (bool &v) |
OperationResult | operator>> (void *&v) |
OperationResult | operator>> (std::string &v) |
OperationResult | operator>> (Reader const &fn) |
Public Member Functions inherited from rili::stream::Writable | |
void | write (unsigned char const *data, std::size_t size) |
Writable & | operator<< (char v) |
Writable & | operator<< (unsigned char v) |
Writable & | operator<< (char const *v) |
Writable & | operator<< (unsigned char const *v) |
Writable & | operator<< (std::string const &v) |
Writable & | operator<< (short v) |
Writable & | operator<< (unsigned short v) |
Writable & | operator<< (long v) |
Writable & | operator<< (unsigned long v) |
Writable & | operator<< (long long v) |
Writable & | operator<< (unsigned long long v) |
Writable & | operator<< (int v) |
Writable & | operator<< (unsigned int v) |
Writable & | operator<< (float v) |
Writable & | operator<< (double v) |
Writable & | operator<< (bool v) |
Writable & | operator<< (void *v) |
OperationResult | operator<< (std::function< OperationResult(Writable &)> const &fn) |
Writable & | operator<< (Writer const &fn) |
Additional Inherited Members | |
Protected Member Functions inherited from rili::stream::Duplex | |
Duplex (Duplex &&other)=default | |
Duplex & | operator= (Duplex &&other)=default |
Detailed Description
It is very similar to std::stringstream
Constructor & Destructor Documentation
|
inlinedefault |
|
inlinedefault |
Member Function Documentation
|
overridevirtual |
consume remove given number of bytes from front of view
- Parameters
-
size number of bytes to remove
Implements rili::stream::Readable.
|
overridevirtual |
flush used to force move data to underlying sink
- Returns
- error exception if occured
Implements rili::stream::Writable.
|
inlinedefault |
|
inlinedefault |
|
overridevirtual |
pull used to pull from stream underlying sink at least given number of bytes
- Parameters
-
count number of bytes to retrieve from sink
- Returns
- error exception if occured
- Note
- implementation of this function do not should provide at least count number of bytes to view.
- count equal to 0 means implementation should provide zero or more bytes to view and implementation should choose easiest amount to provide.
Implements rili::stream::Readable.
|
overridevirtual |
|
overridevirtual |
view used to access currently avaliable data in stream
- Returns
- view
Implements rili::stream::Writable.
|
overridevirtual |
write used to write sequence of chars to stream of given size
- Parameters
-
data data which should be written size number of chars to write
Implements rili::stream::Writable.
The documentation for this class was generated from the following file:
- rili/stream/BufferingStream.hpp