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

Function PgbsonElementWriterEndArray

pg_documentdb_core/src/io/pgbson.c:1732–1746  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1730 * Writes the end array to the current element (either object or array).
1731 */
1732void
1733PgbsonElementWriterEndArray(pgbson_element_writer *elementWriter,
1734 pgbson_array_writer *arrayWriter)
1735{
1736 if (elementWriter->isArray)
1737 {
1738 PgbsonArrayWriterEndArray(elementWriter->arrayWriter,
1739 arrayWriter);
1740 }
1741 else
1742 {
1743 PgbsonWriterEndArray(elementWriter->objectWriterState.objectWriter,
1744 arrayWriter);
1745 }
1746}
1747
1748
1749/*

Calls 2

PgbsonWriterEndArrayFunction · 0.85

Tested by

no test coverage detected