Mangrove
The C++ Object Document Mapper for MongoDB
Public Member Functions | List of all members
boson::char_array_streambuf Class Reference

An input streambuf that uses an existing byte array as a buffer. More...

#include <bson_streambuf.hpp>

+ Inheritance diagram for boson::char_array_streambuf:

Public Member Functions

 char_array_streambuf (const char *data, size_t len)
 Create a streambuf around the given byte array. More...
 

Detailed Description

An input streambuf that uses an existing byte array as a buffer.

Constructor & Destructor Documentation

boson::char_array_streambuf::char_array_streambuf ( const char *  data,
size_t  len 
)

Create a streambuf around the given byte array.

The caller is responsible for maintaining the lifetime of the underlying data.

Parameters
dataA pointer to the data to be read
lenThe length of the data

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