Buffer to be used for receive communications. More...
Public Member Functions | |
RecvBuffer (size_t size=0, bool doubleBuffer=false) | |
void | read (char *data, std::size_t size) |
Public Member Functions inherited from bitpit::CommunicationBuffer< RawRecvBuffer > | |
CommunicationBuffer (size_t size=0, bool doubleBuffer=false) | |
size_t | getSize () const |
bool | isDouble () const |
bool | seekg (size_t pos) |
void | setSize (size_t size) |
std::ifstream::pos_type | tellg (void) const |
Friends | |
template<typename T > | |
RecvBuffer & | operator>>) (RecvBuffer &buffer, T &value) |
Additional Inherited Members | |
Protected Member Functions inherited from bitpit::CommunicationBuffer< RawRecvBuffer > | |
RawRecvBuffer & | getBack () |
std::vector< RawRecvBuffer > & | getBuffers () |
const std::vector< RawRecvBuffer > & | getBuffers () const |
RawRecvBuffer & | getFront () |
void | swap () |
Buffer to be used for receive communications.
Definition at line 106 of file communications_buffers.hpp.
bitpit::RecvBuffer::RecvBuffer | ( | size_t | size = 0, |
bool | doubleBuffer = false ) |
Creates a new receive buffer
Definition at line 77 of file communications_buffers.cpp.
void bitpit::RecvBuffer::read | ( | char * | data, |
std::size_t | size ) |
Read data from the buffer.
[out] | data | is the memory location that will contain the data |
[in] | size | is the size (in bytes) of the data to be read from the stream |
Definition at line 89 of file communications_buffers.cpp.