Provides utilities to validate BSON document representations.
|
stdx::optional< document::view > | bsoncxx::v_noabi::validate (std::uint8_t const *data, std::size_t length) |
| Validates a BSON document. This is a simplified overload that will only do the bare minimum validation of document structure, and does not provide any further information if the document is found to be invalid.
|
stdx::optional< document::view > | bsoncxx::v_noabi::validate (std::uint8_t const *data, std::size_t length, validator const &validator, std::size_t *invalid_offset=nullptr) |
| Validates a BSON document. This overload provides additional control over the precise validation that is performed, and will give the caller access to the offset at which the document was found to be invalid.
|
stdx::optional< document::view > | bsoncxx::validate (std::uint8_t const *data, std::size_t length) |
| Validates a BSON document. This is a simplified overload that will only do the bare minimum validation of document structure, and does not provide any further information if the document is found to be invalid.
|