Public Member Functions | Private Attributes

realm::GrowBuffer Class Reference

#include <RealmGrowBuffer.h>

List of all members.

Public Member Functions

 GrowBuffer (size_t capacity)
 GrowBuffer ()
void clear ()
char * data ()
size_t size ()
size_t free ()
char * prepare (size_t capacity)
void commit (size_t capacity)

Private Attributes

size_t m_capacity
std::string m_buf
size_t m_index

Constructor & Destructor Documentation

realm::GrowBuffer::GrowBuffer ( size_t  capacity  )  [inline]
realm::GrowBuffer::GrowBuffer (  )  [inline]

Member Function Documentation

void realm::GrowBuffer::clear (  )  [inline]

References m_buf, m_capacity, and m_index.

Referenced by RealmConnection::_receive().

void realm::GrowBuffer::commit ( size_t  capacity  )  [inline]

References m_buf, and m_index.

Referenced by RealmConnection::_complete().

char* realm::GrowBuffer::data (  )  [inline]

References m_buf.

Referenced by RealmConnection::_complete_packet().

size_t realm::GrowBuffer::free (  )  [inline]

References m_buf, and m_index.

Referenced by prepare().

char* realm::GrowBuffer::prepare ( size_t  capacity  )  [inline]

References free(), m_buf, and m_index.

Referenced by RealmConnection::_complete_packet().

size_t realm::GrowBuffer::size (  )  [inline]

References m_index.

Referenced by RealmConnection::_complete_packet().

Member Data Documentation

std::string realm::GrowBuffer::m_buf [private]

Referenced by clear(), commit(), data(), free(), and prepare().

Referenced by clear().

size_t realm::GrowBuffer::m_index [private]

Referenced by clear(), commit(), free(), prepare(), and size().

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