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

Function PgbsonArrayWriterWriteUtf8

pg_documentdb_core/src/io/pgbson.c:1314–1324  ·  view source on GitHub ↗

* PgbsonArrayWriterWriteUtf8 writes given string to given nested array at * the current index. */

Source from the content-addressed store, hash-verified

1312 * the current index.
1313 */
1314void
1315PgbsonArrayWriterWriteUtf8(pgbson_array_writer *writer, const char *string)
1316{
1317 const bson_value_t utf8Value = {
1318 .value_type = BSON_TYPE_UTF8,
1319 .value.v_utf8.str = (char *) string,
1320 .value.v_utf8.len = strlen(string)
1321 };
1322
1323 PgbsonArrayWriterWriteValue(writer, &utf8Value);
1324}
1325
1326
1327/*

Calls 1

Tested by

no test coverage detected