reSIProcate/rutil  9694
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
resip::DataBuffer Class Reference

Implementation of std::streambuf used to back the DataStream, iDataStream, and oDataStream. More...

#include <DataStream.hxx>

Inheritance diagram for resip::DataBuffer:
Inheritance graph
[legend]
Collaboration diagram for resip::DataBuffer:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 DataBuffer (Data &str)
virtual ~DataBuffer ()

Protected Member Functions

virtual int sync ()
virtual int overflow (int c=-1)

Protected Attributes

DatamStr

Private Member Functions

 DataBuffer (const DataBuffer &)
DataBufferoperator= (const DataBuffer &)

Detailed Description

Implementation of std::streambuf used to back the DataStream, iDataStream, and oDataStream.

Definition at line 19 of file DataStream.hxx.


Constructor & Destructor Documentation

DataBuffer::DataBuffer ( Data str)

Definition at line 16 of file DataStream.cxx.

References resip::Data::mBuf, resip::Data::mCapacity, resip::Data::mSize, mStr, and resip::Data::size().

   : mStr(str)
{
#ifdef RESIP_USE_STL_STREAMS
   char* gbuf = const_cast<char*>(mStr.mBuf);
   setg(gbuf, gbuf, gbuf+mStr.size());
   // expose the excess capacity as the put buffer
   setp(gbuf+mStr.mSize, gbuf+mStr.mCapacity);
#endif
}

Here is the call graph for this function:

DataBuffer::~DataBuffer ( ) [virtual]

Definition at line 27 of file DataStream.cxx.

{}
resip::DataBuffer::DataBuffer ( const DataBuffer ) [private]

Member Function Documentation

DataBuffer& resip::DataBuffer::operator= ( const DataBuffer ) [private]
virtual int resip::DataBuffer::overflow ( int  c = -1) [protected, virtual]
virtual int resip::DataBuffer::sync ( ) [protected, virtual]

Member Data Documentation

Definition at line 42 of file DataStream.hxx.

Referenced by DataBuffer().


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