Loading...
Searching...
No Matches
bitpit::RecvBuffer Class Reference
Buffer to be used for receive communications. More...
Inheritance diagram for bitpit::RecvBuffer:

Collaboration diagram for bitpit::RecvBuffer:

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 () |
Detailed Description
Buffer to be used for receive communications.
Definition at line 106 of file communications_buffers.hpp.
Constructor & Destructor Documentation
◆ RecvBuffer()
| bitpit::RecvBuffer::RecvBuffer | ( | size_t | size = 0, |
| bool | doubleBuffer = false ) |
Creates a new receive buffer
Definition at line 77 of file communications_buffers.cpp.
Member Function Documentation
◆ read()
| void bitpit::RecvBuffer::read | ( | char * | data, |
| std::size_t | size ) |
Read data from the buffer.
- Parameters
-
[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.
The documentation for this class was generated from the following files:
- src/communications/communications_buffers.hpp
- src/communications/communications_buffers.cpp
1.13.2
Public Member Functions inherited from