This implements a wrapper around a piece of memory for istreams. More...
#include <llmemorystream.h>
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.