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

Function PgbsonElementWriterEndDocument

pg_documentdb_core/src/io/pgbson.c:1774–1788  ·  view source on GitHub ↗

* Write the end document to the current element (either object or array). */

Source from the content-addressed store, hash-verified

1772 * Write the end document to the current element (either object or array).
1773 */
1774void
1775PgbsonElementWriterEndDocument(pgbson_element_writer *elementWriter,
1776 pgbson_writer *endDocument)
1777{
1778 if (elementWriter->isArray)
1779 {
1780 PgbsonArrayWriterEndDocument(elementWriter->arrayWriter,
1781 endDocument);
1782 }
1783 else
1784 {
1785 PgbsonWriterEndDocument(elementWriter->objectWriterState.objectWriter,
1786 endDocument);
1787 }
1788}
1789
1790
1791/*

Calls 2

PgbsonWriterEndDocumentFunction · 0.85

Tested by

no test coverage detected