MongoDB C++ Driver mongocxx-3.11.0
|
Provides utilities to validate BSON document representations.
Go to the source code of this file.
Classes | |
class | bsoncxx::v_noabi::validator |
A validator is used to enable or disable specific checks that can be performed during BSON validation. More... | |
Namespaces | |
namespace | bsoncxx |
The top-level namespace within which all bsoncxx library entities are declared. | |
namespace | bsoncxx::v_noabi |
Declares entities whose ABI stability is NOT guaranteed. | |
Functions | |
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) | |