MongoDB C++ Driver  legacy-1.1.2
Classes | Public Member Functions | Static Public Member Functions | List of all members
mongo::SharedBuffer Class Reference

Classes

class  Holder
 

Public Member Functions

SharedBuffer moveFrom ()
 C++03 compatible way of writing std::move(someSharedBuffer)
 

Static Public Member Functions

static SharedBuffer takeOwnership (char *holderPrefixedData)
 Given a pointer to a region of un-owned data, prefixed by sufficient space for a SharedBuffer::Holder object, return an SharedBuffer that owns the memory. More...
 

Member Function Documentation

static SharedBuffer mongo::SharedBuffer::takeOwnership ( char *  holderPrefixedData)
inlinestatic

Given a pointer to a region of un-owned data, prefixed by sufficient space for a SharedBuffer::Holder object, return an SharedBuffer that owns the memory.

This class will call free(holderPrefixedData), so it must have been allocated in a way that makes that valid.


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