PionNetworkLibrary
|
a simple helper class used to manage a fixed-size payload content buffer More...
#include <message.hpp>
Public Member Functions | |
~content_buffer_t () | |
simple destructor More... | |
content_buffer_t () | |
default constructor More... | |
content_buffer_t (const content_buffer_t &buf) | |
copy constructor More... | |
content_buffer_t & | operator= (const content_buffer_t &buf) |
assignment operator More... | |
bool | is_empty () const |
returns true if buffer is empty More... | |
std::size_t | size () const |
returns size in bytes More... | |
const char * | get () const |
returns const pointer to data More... | |
char * | get () |
returns mutable pointer to data More... | |
void | resize (std::size_t len) |
changes the size of the content buffer More... | |
void | clear () |
clears the content buffer More... | |
a simple helper class used to manage a fixed-size payload content buffer
|
inline |
simple destructor
|
inline |
default constructor
|
inline |
|
inline |
clears the content buffer
|
inline |
returns const pointer to data
Referenced by content_buffer_t(), and operator=().
|
inline |
returns mutable pointer to data
|
inline |
returns true if buffer is empty
|
inline |
|
inline |
changes the size of the content buffer
|
inline |
returns size in bytes
Referenced by content_buffer_t(), and operator=().