Made to Order Software Corporation Logo

LLChatLib: LLMemoryStreamBuf Class Reference

LLMemoryStreamBuf Class Reference

This implements a wrapper around a piece of memory for istreams. More...

#include <llmemorystream.h>

List of all members.


Detailed Description

This implements a wrapper around a piece of memory for istreams.

This is a simple but effective optimization when you want to treat a chunk of memory as an istream. I wrote this to avoid turing a buffer into a string, and then throwing the string into an iostringstream just to parse it into another datatype, eg, LLSD.

The memory passed in is NOT owned by an instance. The caller must be careful to always pass in a valid memory location that exists for at least as long as this streambuf.


The documentation for this class was generated from the following files:
Generated on Thu Sep 23 17:18:42 2010 for LLChatLib by  doxygen 1.6.3