* Initializes a BSON value as an empty array. * outValue - Pointer to the BSON value to initialize. */
| 1904 | * outValue - Pointer to the BSON value to initialize. |
| 1905 | */ |
| 1906 | void |
| 1907 | InitBsonValueAsEmptyArray(bson_value_t *outValue) |
| 1908 | { |
| 1909 | const pgbson *emptyDoc = PgbsonInitEmpty(); |
| 1910 | outValue->value_type = BSON_TYPE_ARRAY; |
| 1911 | outValue->value.v_doc.data_len = VARSIZE_ANY_EXHDR(emptyDoc); |
| 1912 | outValue->value.v_doc.data = (uint8_t *) VARDATA_ANY(emptyDoc); |
| 1913 | } |
| 1914 | |
| 1915 | |
| 1916 | /* |
no test coverage detected