Very Simple Cross-Platform Library
|
#include <BufferedStream.h>
Public Member Functions | |
virtual | ~BufferedStream () |
ReadingBuffer & | getReadingBuffer () |
WritingBuffer & | getWritingBuffer () |
Public Member Functions inherited from hu::varadiistvan::scpl::io::Failable | |
Failable () | |
bool | failed () const |
errorCode_t | getErrorCode () const |
void | repair () |
Static Public Attributes | |
static const size_t | DEFAULT_CAPACITY = 4096 |
Additional Inherited Members | |
Protected Member Functions inherited from hu::varadiistvan::scpl::io::Failable | |
void | setErrorCode (errorCode_t ec) |
Base class for streams on which a waiter can wait and provides a reading and/or a writing buffer.
Definition at line 45 of file BufferedStream.h.
|
virtual |
Destroy the buffered stream.
ReadingBuffer& hu::varadiistvan::scpl::io::BufferedStream::getReadingBuffer | ( | ) |
Get the reference of the reading buffer. Note, that it can be a 0 reference, if the stream has no reading buffer.
WritingBuffer& hu::varadiistvan::scpl::io::BufferedStream::getWritingBuffer | ( | ) |
Get the reference of the writing buffer. Note, that it can be a 0 reference, if the stream has no writing buffer.
|
static |
The default buffer capacity.
Definition at line 51 of file BufferedStream.h.