![]() |
![]()
| ![]() |
![]()
SYNOPSISbool bson_iter_init_from_data (bson_iter_t *iter, const uint8_t *data, size_t length); PARAMETERS
DESCRIPTIONThe bson_iter_init_from_data() function shall initialize iter to iterate upon the buffer data, which must contain a BSON document. Upon initialization, iter is placed before the first element. Callers must call bson_iter_next(), bson_iter_find(), or bson_iter_find_case() to advance to an element. RETURNSReturns true if the iter was successfully initialized. EXAMPLEstatic void print_doc_id (const uint8_t *data, size_t length) { AUTHORMongoDB, Inc COPYRIGHT2009-present, MongoDB, Inc.
|