MongoDB C++ Driver
legacy-1.1.2
|
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... | |
|
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.