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

Function PgbsonWriterGetValue

pg_documentdb_core/src/io/pgbson.c:1495–1504  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1493
1494
1495bson_value_t
1496PgbsonWriterGetValue(pgbson_writer *writer)
1497{
1498 bson_value_t bsonValue = { 0 };
1499 uint32_t writerSize = PgbsonWriterGetSize(writer);
1500 bsonValue.value_type = BSON_TYPE_DOCUMENT;
1501 bsonValue.value.v_doc.data = (uint8_t *) bson_get_data(&writer->innerBson);
1502 bsonValue.value.v_doc.data_len = writerSize;
1503 return bsonValue;
1504}
1505
1506
1507bson_value_t

Calls 1

PgbsonWriterGetSizeFunction · 0.85

Tested by

no test coverage detected