Provides utilities to validate BSON document representations.
|
stdx::optional< document::view > | bsoncxx::v_noabi::validate (const std::uint8_t *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 (const std::uint8_t *data, std::size_t length, const validator &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.
|
|
v_noabi::stdx::optional< v_noabi::document::view > | bsoncxx::validate (const std::uint8_t *data, std::size_t length) |
| bsoncxx::v_noabi::validate(const std::uint8_t* data, std::size_t length)
|
|
v_noabi::stdx::optional< v_noabi::document::view > | bsoncxx::validate (const std::uint8_t *data, std::size_t length, const v_noabi::validator &validator, std::size_t *invalid_offset=nullptr) |
| bsoncxx::v_noabi::validate(const std::uint8_t* data, std::size_t length, const v_noabi::validator& validator, std::size_t* invalid_offset)
|
|