| 1493 | |
| 1494 | |
| 1495 | bson_value_t |
| 1496 | PgbsonWriterGetValue(pgbson_writer *writer) |
| 1497 | { |
| 1498 | bson_value_t bsonValue = { 0 }; |
| 1499 | uint32_t writerSize = PgbsonWriterGetSize(writer); |
| 1500 | bsonValue.value_type = BSON_TYPE_DOCUMENT; |
| 1501 | bsonValue.value.v_doc.data = (uint8_t *) bson_get_data(&writer->innerBson); |
| 1502 | bsonValue.value.v_doc.data_len = writerSize; |
| 1503 | return bsonValue; |
| 1504 | } |
| 1505 | |
| 1506 | |
| 1507 | bson_value_t |
no test coverage detected