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

Collaboration diagram for bitpit::SendBuffer:

Public Member Functions | |
SendBuffer (size_t size=0, bool doubleBuffer=false) | |
void | squeeze () |
void | write (const char *data, std::size_t size) |
![]() | |
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> | |
SendBuffer & | operator<<) (SendBuffer &buffer, const T &value) |
Additional Inherited Members | |
![]() | |
RawSendBuffer & | getBack () |
std::vector< RawSendBuffer > & | getBuffers () |
const std::vector< RawSendBuffer > & | getBuffers () const |
RawSendBuffer & | getFront () |
void | swap () |
Detailed Description
Buffer to be used for send communications.
Definition at line 90 of file communications_buffers.hpp.
Constructor & Destructor Documentation
◆ SendBuffer()
bitpit::SendBuffer::SendBuffer | ( | size_t | size = 0, |
bool | doubleBuffer = false ) |
Creates a new send buffer
Definition at line 39 of file communications_buffers.cpp.
Member Function Documentation
◆ squeeze()
void bitpit::SendBuffer::squeeze | ( | ) |
Requests the buffer to reduce its size to fit the data currently contained in the stream.
Definition at line 48 of file communications_buffers.cpp.
◆ write()
void bitpit::SendBuffer::write | ( | const char * | data, |
std::size_t | size ) |
Write data into the buffer.
- Parameters
-
[in] data is the memory that contain the data [in] size is the size (in bytes) of the data to be written into the stream
Definition at line 62 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
