staticlib_pion  2.0.2
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Public Member Functions | List of all members
staticlib::pion::http_message::content_buffer_t Class Reference

A simple helper class used to manage a fixed-size payload content buffer. More...

#include <staticlib/pion/http_message.hpp>

Public Member Functions

 ~content_buffer_t ()
 Simple destructor.
 content_buffer_t ()
 Default constructor.
 content_buffer_t (const content_buffer_t &buf)
 Copy constructor.
content_buffer_t & operator= (const content_buffer_t &buf)
 Assignment operator.
bool is_empty () const
 Returns true if buffer is empty.
std::size_t size () const
 Returns size in bytes.
const char * get () const
 Returns const pointer to data.
char * get ()
 Returns mutable pointer to data.
void resize (std::size_t len)
 Changes the size of the content buffer.
void clear ()
 Clears the content buffer.

Detailed Description

A simple helper class used to manage a fixed-size payload content buffer.

Constructor & Destructor Documentation

staticlib::pion::http_message::content_buffer_t::~content_buffer_t ( )
inline

Simple destructor.

staticlib::pion::http_message::content_buffer_t::content_buffer_t ( )
inline

Default constructor.

staticlib::pion::http_message::content_buffer_t::content_buffer_t ( const content_buffer_t &  buf)
inline

Copy constructor.

Member Function Documentation

void staticlib::pion::http_message::content_buffer_t::clear ( )
inline

Clears the content buffer.

const char* staticlib::pion::http_message::content_buffer_t::get ( ) const
inline

Returns const pointer to data.

char* staticlib::pion::http_message::content_buffer_t::get ( )
inline

Returns mutable pointer to data.

bool staticlib::pion::http_message::content_buffer_t::is_empty ( ) const
inline

Returns true if buffer is empty.

content_buffer_t& staticlib::pion::http_message::content_buffer_t::operator= ( const content_buffer_t &  buf)
inline

Assignment operator.

void staticlib::pion::http_message::content_buffer_t::resize ( std::size_t  len)
inline

Changes the size of the content buffer.

std::size_t staticlib::pion::http_message::content_buffer_t::size ( ) const
inline

Returns size in bytes.


The documentation for this class was generated from the following file: