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

Function PgbsonCloneFromPgbson

pg_documentdb_core/src/io/pgbson.c:634–639  ·  view source on GitHub ↗

* Initializes a pgbson structure from a pgbson */

Source from the content-addressed store, hash-verified

632 * Initializes a pgbson structure from a pgbson
633 */
634pgbson *
635PgbsonCloneFromPgbson(const pgbson *bson)
636{
637 return CreatePgbsonfromBsonBytes((const uint8_t *) VARDATA_ANY(bson),
638 VARSIZE_ANY_EXHDR(bson));
639}
640
641
642/*

Callers 8

PostProcessSlotFunction · 0.85
GetRequestFromIndexQueueFunction · 0.85
AggregateObjectsCoreFunction · 0.85
bson_min_combineFunction · 0.85
bson_max_combineFunction · 0.85

Calls 1

Tested by

no test coverage detected