MongoDB  2.7.0
Public Member Functions | Friends | List of all members
mongo::_BufBuilder< Allocator > Class Template Reference

Public Member Functions

 _BufBuilder (int initsize=512)
 
void kill ()
 
void reset ()
 
void reset (int maxSize)
 
char * skip (int n)
 leave room for some stuff later More...
 
char * buf ()
 
const char * buf () const
 
void decouple ()
 
void appendUChar (unsigned char j)
 
void appendChar (char j)
 
void appendNum (char j)
 
void appendNum (short j)
 
void appendNum (int j)
 
void appendNum (unsigned j)
 
void appendNum (bool j)
 
void appendNum (double j)
 
void appendNum (long long j)
 
void appendNum (unsigned long long j)
 
void appendBuf (const void *src, size_t len)
 
template<class T >
void appendStruct (const T &s)
 
void appendStr (const StringData &str, bool includeEndingNull=true)
 
int len () const
 
void setlen (int newLen)
 
int getSize () const
 
char * grow (int by)
 

Friends

class StringBuilderImpl< Allocator >
 

Member Function Documentation

template<class Allocator>
int mongo::_BufBuilder< Allocator >::getSize ( ) const
inline
Returns
size of the buffer
template<class Allocator>
int mongo::_BufBuilder< Allocator >::len ( ) const
inline
Returns
length of current string
template<class Allocator>
char* mongo::_BufBuilder< Allocator >::skip ( int  n)
inline

leave room for some stuff later

Returns
point to region that was skipped. pointer may change later (on realloc), so for immediate use only

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