LLBufferStreamBuf Class Reference

This implements the buffer wrapper for an istream. More...

#include <llbufferstream.h>

Collaboration diagram for LLBufferStreamBuf:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLBufferStreamBuf (const LLChannelDescriptors &channels, LLBufferArray *buffer)
virtual ~LLBufferStreamBuf ()

Protected Member Functions

virtual int underflow ()
virtual int overflow (int c)
virtual int sync ()
virtual streampos seekoff (streamoff off, std::ios::seekdir way, std::ios::openmode which)

Protected Attributes

LLChannelDescriptors mChannels
LLBufferArraymBuffer


Detailed Description

This implements the buffer wrapper for an istream.

The buffer array passed in is not owned by the stream buf object.

Definition at line 47 of file llbufferstream.h.


Constructor & Destructor Documentation

LLBufferStreamBuf::LLBufferStreamBuf ( const LLChannelDescriptors channels,
LLBufferArray buffer 
)

Definition at line 45 of file llbufferstream.cpp.

References LLMemType::MTYPE_IO_BUFFER.

LLBufferStreamBuf::~LLBufferStreamBuf (  )  [virtual]

Definition at line 54 of file llbufferstream.cpp.

References LLMemType::MTYPE_IO_BUFFER, and sync().

Here is the call graph for this function:


Member Function Documentation

int LLBufferStreamBuf::underflow (  )  [protected, virtual]

int LLBufferStreamBuf::overflow ( int  c  )  [protected, virtual]

int LLBufferStreamBuf::sync (  )  [protected, virtual]

Definition at line 172 of file llbufferstream.cpp.

References LLBufferArray::endSegment(), LLBufferArray::eraseSegment(), mBuffer, mChannels, LLMemType::MTYPE_IO_BUFFER, NULL, LLChannelDescriptors::out(), LLBufferArray::seek(), and LLBufferArray::splitAfter().

Referenced by overflow(), and ~LLBufferStreamBuf().

Here is the call graph for this function:

Here is the caller graph for this function:

streampos LLBufferStreamBuf::seekoff ( streamoff  off,
std::ios::seekdir  way,
std::ios::openmode  which 
) [protected, virtual]


Member Data Documentation

Definition at line 128 of file llbufferstream.h.

Referenced by overflow(), seekoff(), sync(), and underflow().

Definition at line 131 of file llbufferstream.h.

Referenced by overflow(), seekoff(), sync(), and underflow().


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

Generated on Fri May 16 08:39:31 2008 for SecondLife by  doxygen 1.5.5