MCPcopy Create free account
hub / github.com/documentdb/documentdb / BsonIterToPgbsonElement

Function BsonIterToPgbsonElement

pg_documentdb_core/src/io/pgbsonelement.c:52–58  ·  view source on GitHub ↗

* Converts the current value at the iterator into a pgbsonelement. */

Source from the content-addressed store, hash-verified

50 * Converts the current value at the iterator into a pgbsonelement.
51 */
52void
53BsonIterToPgbsonElement(bson_iter_t *iterator, pgbsonelement *element)
54{
55 element->path = bson_iter_key(iterator);
56 element->pathLength = bson_iter_key_len(iterator);
57 element->bsonValue = *bson_iter_value(iterator);
58}
59
60
61/*

Calls

no outgoing calls

Tested by

no test coverage detected