MongoDB C++ Driver 4.1.0
|
#include <bsoncxx/v_noabi/bsoncxx/builder/basic/sub_binary.hpp>
Represents a BSON Binary element being constructed during an append operation.
Public Member Functions | |
sub_binary (core *core) | |
Default constructor. | |
std::uint8_t * | allocate (binary_sub_type sub_type, std::uint32_t length) |
Allocate space for an un-initialized BSON Binary element of any subtype. | |
template<typename Format, typename SFINAE = typename vector::detail::format_traits<Format>::value_type> | |
vector::accessor< Format > | allocate (Format fmt, std::size_t element_count) |
Allocate and format space for a BSON Binary Vector with uninitialized elements. | |
|
inline |
Default constructor.
|
inline |
Allocate space for an un-initialized BSON Binary element of any subtype.
sub_type | BSON binary subtype code, identifying the format of the data within. |
length | Number of bytes to allocate |
bsoncxx::v_noabi::exception | if this sub_binary has already allocated. |
bsoncxx::v_noabi::exception | if the binary fails to append due to the BSON size limit. |
|
inline |
Allocate and format space for a BSON Binary Vector with uninitialized elements.
fmt | Instance of a format type from bsoncxx::v_noabi::vector::formats |
element_count | Number of elements to allocate space for. |
bsoncxx::v_noabi::exception | if this sub_binary has already allocated. |
bsoncxx::v_noabi::exception | if the binary fails to append due to the BSON size limit. |
bsoncxx::v_noabi::exception | if a vector of the requested size would be too large to represent. |