![]() |
![]()
| ![]() |
![]()
SYNOPSISbson_t * bson_new_from_buffer (uint8_t **buf, PARAMETERS
DESCRIPTIONCreates a new bson_t using the data provided. The realloc_func, if provided, is called to resize buf if the document is later expanded, for example by a call to one of the bson_append functions. If *buf is initially NULL then it is allocated, using realloc_func or the default allocator, and initialized with an empty BSON document, and *buf_len is set to 5, the size of an empty document. RETURNSA newly-allocated bson_t on success, or NULL. AUTHORMongoDB, Inc COPYRIGHT2009-present, MongoDB, Inc.
|