blocxx
BLOCXX_NAMESPACE::String::ByteBuf Class Reference
Inheritance diagram for BLOCXX_NAMESPACE::String::ByteBuf:
BLOCXX_NAMESPACE::COWIntrusiveCountableBase

Public Member Functions

 ByteBuf (const char *s)
 
 ByteBuf (const ByteBuf &arg)
 
 ByteBuf (AutoPtrVec< char > &s, size_t len)
 
 ~ByteBuf ()
 
ByteBufoperator= (const ByteBuf &arg)
 
size_t length () const
 
char * data () const
 
ByteBufclone () const
 

Private Attributes

size_t m_len
 
char * m_buf
 

Additional Inherited Members

- Protected Member Functions inherited from BLOCXX_NAMESPACE::COWIntrusiveCountableBase
 COWIntrusiveCountableBase (COWIntrusiveCountableBase const &)
 Copy constructor.
 
COWIntrusiveCountableBaseoperator= (COWIntrusiveCountableBase const &x)
 Assignment operator.
 
 COWIntrusiveCountableBase ()
 Default constructor.
 
virtual ~COWIntrusiveCountableBase ()
 Destroy this COWIntrusiveCountableBase object.
 
RefCount getRefCount () const
 

Detailed Description

Definition at line 93 of file String.cpp.

Constructor & Destructor Documentation

◆ ByteBuf() [1/3]

BLOCXX_NAMESPACE::String::ByteBuf::ByteBuf ( const char * s)
inline

Definition at line 96 of file String.cpp.

References m_buf.

Referenced by clone().

◆ ByteBuf() [2/3]

BLOCXX_NAMESPACE::String::ByteBuf::ByteBuf ( const ByteBuf & arg)
inline

Definition at line 102 of file String.cpp.

References m_buf.

◆ ByteBuf() [3/3]

BLOCXX_NAMESPACE::String::ByteBuf::ByteBuf ( AutoPtrVec< char > & s,
size_t len )
inline

Definition at line 110 of file String.cpp.

◆ ~ByteBuf()

BLOCXX_NAMESPACE::String::ByteBuf::~ByteBuf ( )
inline

Definition at line 115 of file String.cpp.

References m_buf.

Member Function Documentation

◆ clone()

ByteBuf * BLOCXX_NAMESPACE::String::ByteBuf::clone ( ) const
inline

Definition at line 129 of file String.cpp.

References ByteBuf().

◆ data()

◆ length()

size_t BLOCXX_NAMESPACE::String::ByteBuf::length ( ) const
inline

◆ operator=()

ByteBuf & BLOCXX_NAMESPACE::String::ByteBuf::operator= ( const ByteBuf & arg)
inline

Definition at line 117 of file String.cpp.

References m_buf, and m_len.

Member Data Documentation

◆ m_buf

char* BLOCXX_NAMESPACE::String::ByteBuf::m_buf
private

Definition at line 132 of file String.cpp.

Referenced by ByteBuf(), ByteBuf(), data(), operator=(), and ~ByteBuf().

◆ m_len

size_t BLOCXX_NAMESPACE::String::ByteBuf::m_len
private

Definition at line 131 of file String.cpp.

Referenced by length(), and operator=().


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