#include <CStreamBuffer.h>
Public Member Functions | |
manipulators | |
const void * | peek (UInt32 n) |
Read data without removing from buffer. | |
void | pop (UInt32 n) |
Discard data. | |
void | write (const void *data, UInt32 n) |
Write data to buffer. | |
accessors | |
UInt32 | getSize () const |
Get size of buffer. |
This class maintains a FIFO (first-in, last-out) buffer of bytes.
Definition at line 26 of file CStreamBuffer.h.
|
Get size of buffer. Returns the number of bytes in the buffer. Definition at line 139 of file CStreamBuffer.cpp. Referenced by CPacketStreamFilter::close(), CTCPSocket::getSize(), CTCPSocket::isReady(), CTCPSocket::read(), CPacketStreamFilter::shutdownInput(), and CTCPSocket::write(). |
|
Read data without removing from buffer.
Return a pointer to memory with the next Definition at line 36 of file CStreamBuffer.cpp. Referenced by CTCPSocket::read(), and CPacketStreamFilter::read(). |
|
Discard data.
Discards the next Definition at line 62 of file CStreamBuffer.cpp. Referenced by CPacketStreamFilter::close(), CTCPSocket::read(), CPacketStreamFilter::read(), and CPacketStreamFilter::shutdownInput(). |
|
Write data to buffer.
Appends Definition at line 92 of file CStreamBuffer.cpp. Referenced by CTCPSocket::write(). |