#include <bsoncxx/v1/types/view.hpp>
BSON type value "Binary Data".
Public Member Functions | |
| b_binary ()=default | |
| Zero-initialize the represented value. | |
| b_binary (binary_subtype subtype, std::uint32_t size, std::uint8_t const *bytes) | |
| Initialize with the given binary subtype and pointer to binary data. | |
Public Attributes | |
| std::uint8_t const * | bytes = {} |
| The represented value's binary data. | |
| std::uint32_t | size = {} |
| The represented value's length of binary data. | |
| binary_subtype | subtype = {} |
| The represented value's binary subtype component. | |
Static Public Attributes | |
| static constexpr id | type_id = id::k_binary |
| The type represented by this BSON type value. | |
Friends | |
| bool | operator== (b_binary const &lhs, b_binary const &rhs) |
| Compare equal when the binary subtype and pointed-to bytes compare equal. | |
| bool | operator!= (b_binary const &lhs, b_binary const &rhs) |
| Compare equal when the binary subtype and pointed-to bytes compare equal. | |
|
default |
Zero-initialize the represented value.
|
inline |
Initialize with the given binary subtype and pointer to binary data.
| std::uint8_t const* bsoncxx::v1::types::b_binary::bytes = {} |
The represented value's binary data.
| std::uint32_t bsoncxx::v1::types::b_binary::size = {} |
The represented value's length of binary data.
| binary_subtype bsoncxx::v1::types::b_binary::subtype = {} |
The represented value's binary subtype component.
|
staticconstexpr |
The type represented by this BSON type value.