|
CoreComponents 3.0.0
A Modern C++ Toolkit
|
Internal state. More...
#include <HashSink>
Public Member Functions | |
| virtual Bytes | finish ()=0 |
Public Member Functions inherited from Stream::State | |
| virtual bool | waitEstablished (int timeout=-1) |
| Wait until the connection is fully established. | |
| virtual bool | wait (IoEvent event, int timeout=-1) |
| Wait for an I/O event. | |
| virtual long | read (Out< Bytes > buffer, long maxFill=-1) |
| Read available bytes into buffer and return number of bytes read. | |
| virtual void | write (const Bytes &buffer, long fill=-1) |
| Write fill bytes from buffer (if fill < 0 write all bytes from buffer) | |
| virtual void | write (const List< Bytes > &buffers) |
| Write the contents of buffers in one go. | |
| virtual void | write (const struct iovec *iov, int iovcnt) |
| Write the contents of the iov buffers in one go. | |
| virtual bool | isDiscarding () const |
| Return true if this stream is discarding all writes | |
| virtual long long | transferTo (const Stream &sink, long long count, const Bytes &buffer) |
| Transfer a span of bytes. | |
| virtual long | defaultTransferUnit () const |
| Default I/O buffer size. | |
| long long | transferTo (const Stream &sink, long long count=-1) |
| Transfer a span of bytes. | |
| long long | skip (long long count) |
| Read and discard count bytes. | |
| void | drain (const Bytes &auxBuffer=Bytes{}) |
| Read everything that is left. | |
| long | readSpan (Out< Bytes > buffer) |
| Read fixed number of bytes. | |
| String | readSpan (long count) |
| Read a fixed number of bytes. | |
| String | readAll (const Bytes &auxBuffer=Bytes{}) |
| Read the entire stream. | |
Public Member Functions inherited from Object::State | |
| State ()=default | |
| Default constructor. | |
| State (const State &) | |
| Copy constructor. | |
| virtual | ~State () |
| Virtual destructor. | |
| long | useCount () const |
| Reference count. | |
| const State & | operator= (const State &) const |
| template<class T > | |
| bool | is () const |
| Check if this state is of type T. | |
| template<class T > | |
| T & | as () |
| Statically cast this state to a different type T. | |
| template<class T > | |
| const T & | as () const |
| Statically cast this state to a different type T. | |
Internal state.