#include <Buffer.h> [code]
Inherited by Protocols::Generics::SocketBuffer, and Protocols::Generics::Transport.
Inheritance diagram for Protocols::Generics::Buffer:

A common problem is reading and writing data from and to buffers. Certain Buffer implementations could provide read and write access to the same bytes, thus the same Buffer could be used e.g. for unidirectional data exchange data between threads. Other implementations could provide read access to one buffer and write access to another buffer and could thus be used to model a communication channel.
Definition at line 40 of file Buffer.h.
Public Member Functions | |
| virtual | ~Buffer () |
| virtual bool | canRead (int count) const =0 |
| virtual QByteArray | peek (int count) const =0 |
| virtual QByteArray | peekAtMost (int count) const =0 |
| virtual QByteArray | peekTo (const QByteArray &delimiter) const =0 |
| virtual QByteArray | peekAll () const =0 |
| virtual QByteArray | read (int count)=0 |
| virtual QByteArray | readAtMost (int count)=0 |
| virtual QByteArray | readTo (const QByteArray &delimiter)=0 |
| virtual QByteArray | readAll ()=0 |
| virtual bool | canWrite (int count) const =0 |
| virtual bool | write (const QByteArray &bytes, bool flush=true)=0 |
|
|
|
|
|
Implemented in Protocols::Generics::SocketTransport, Protocols::Generics::TcpSocketBuffer, and Protocols::Generics::Testing::TransportStub. |
|
|
Implemented in Protocols::Generics::SocketTransport, Protocols::Generics::TcpSocketBuffer, and Protocols::Generics::Testing::TransportStub. |
|
|
Implemented in Protocols::Generics::SocketTransport, Protocols::Generics::TcpSocketBuffer, and Protocols::Generics::Testing::TransportStub. |
|
|
Implemented in Protocols::Generics::SocketTransport, Protocols::Generics::TcpSocketBuffer, and Protocols::Generics::Testing::TransportStub. |
|
|
Implemented in Protocols::Generics::SocketTransport, Protocols::Generics::TcpSocketBuffer, and Protocols::Generics::Testing::TransportStub. |
|
|
Implemented in Protocols::Generics::SocketTransport, Protocols::Generics::TcpSocketBuffer, and Protocols::Generics::Testing::TransportStub. |
|
|
Implemented in Protocols::Generics::SocketTransport, Protocols::Generics::TcpSocketBuffer, and Protocols::Generics::Testing::TransportStub. |
|
|
Implemented in Protocols::Generics::SocketTransport, Protocols::Generics::TcpSocketBuffer, and Protocols::Generics::Testing::TransportStub. |
|
|
Implemented in Protocols::Generics::SocketTransport, Protocols::Generics::TcpSocketBuffer, and Protocols::Generics::Testing::TransportStub. |
|
|
Implemented in Protocols::Generics::SocketTransport, Protocols::Generics::TcpSocketBuffer, and Protocols::Generics::Testing::TransportStub. |
|
||||||||||||
|
Implemented in Protocols::Generics::SocketTransport, Protocols::Generics::TcpSocketBuffer, and Protocols::Generics::Testing::TransportStub. |