Very Simple Cross-Platform Library
Public Member Functions | Static Public Attributes | List of all members
hu::varadiistvan::scpl::io::BufferedStream Class Reference

#include <BufferedStream.h>

Inheritance diagram for hu::varadiistvan::scpl::io::BufferedStream:
hu::varadiistvan::scpl::io::Failable hu::varadiistvan::scpl::io::LocalClientSocket hu::varadiistvan::scpl::io::LocalSocket hu::varadiistvan::scpl::io::TCPClientSocket hu::varadiistvan::scpl::io::TCPSocket

Public Member Functions

virtual ~BufferedStream ()
 
ReadingBuffergetReadingBuffer ()
 
WritingBuffergetWritingBuffer ()
 
- 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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~BufferedStream()

virtual hu::varadiistvan::scpl::io::BufferedStream::~BufferedStream ( )
virtual

Destroy the buffered stream.

Member Function Documentation

◆ getReadingBuffer()

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.

◆ getWritingBuffer()

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.

Member Data Documentation

◆ DEFAULT_CAPACITY

const size_t hu::varadiistvan::scpl::io::BufferedStream::DEFAULT_CAPACITY = 4096
static

The default buffer capacity.

Definition at line 51 of file BufferedStream.h.


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