|
SharedBuffer | moveFrom () |
| C++03 compatible way of writing std::move(someSharedBuffer)
|
|
◆ takeOwnership()
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: