![]() |
Storage Engine API
|
A replacement for the Record class. More...
#include <record_data.h>
A replacement for the Record class.
This class represents data in a record store. The _ownedData attribute is used to manage memory ownership.
Public Member Functions | |
| RecordData () | |
| RecordData (const char *data, int size) | |
| RecordData (SharedBuffer ownedData, int size) | |
| const char * | data () const |
| int | size () const |
| bool | isOwned () const |
| Returns true if this owns its own memory, and false otherwise. More... | |
| SharedBuffer | releaseBuffer () |
| BSONObj | toBson () const & |
| BSONObj | releaseToBson () |
| BSONObj | toBson () && |
| RecordData | getOwned () const |
| void | makeOwned () |
Private Attributes | |
| const char * | _data |
| int | _size |
| SharedBuffer | _ownedData |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Returns true if this owns its own memory, and false otherwise.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |