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

Function PgbsonElementWriterStartArray

pg_documentdb_core/src/io/pgbson.c:1710–1726  ·  view source on GitHub ↗

* Write a start array to the current element (either object or array). */

Source from the content-addressed store, hash-verified

1708 * Write a start array to the current element (either object or array).
1709 */
1710void
1711PgbsonElementWriterStartArray(pgbson_element_writer *elementWriter,
1712 pgbson_array_writer *startArray)
1713{
1714 if (elementWriter->isArray)
1715 {
1716 PgbsonArrayWriterStartArray(elementWriter->arrayWriter,
1717 startArray);
1718 }
1719 else
1720 {
1721 PgbsonWriterStartArray(elementWriter->objectWriterState.objectWriter,
1722 elementWriter->objectWriterState.path,
1723 elementWriter->objectWriterState.pathLength,
1724 startArray);
1725 }
1726}
1727
1728
1729/*

Calls 2

PgbsonWriterStartArrayFunction · 0.85

Tested by

no test coverage detected