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

Function PgbsonWriterEndArray

pg_documentdb_core/src/io/pgbson.c:1120–1129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1118 * Finishes appending an array to the current writer.
1119 */
1120pgbson_require_alignment() void
1121PgbsonWriterEndArray(pgbson_writer *writer, pgbson_array_writer *childWriter)
1122{
1123 if (!bson_append_array_end(&(writer->innerBson), &(childWriter->innerBson)))
1124 {
1125 ereport(ERROR, (errcode(ERRCODE_DOCUMENTDB_BADVALUE), errmsg(
1126 "adding EndArray value: failed due to value being too large"))
1127 );
1128 }
1129}
1130
1131
1132/*

Calls

no outgoing calls

Tested by

no test coverage detected