14978 {
14980 write_number<std::int32_t, true>(
static_cast<std::int32_t
>(
value.size()));
14981 write_number(
value.has_subtype() ?
static_cast<std::uint8_t
>(
value.subtype()) : std::uint8_t(0x00));
14982 oa->write_characters(
reinterpret_cast<const CharType *
>(
value.data()),
value.size());
14983 }
void write_bson_entry_header(const string_t &name, const std::uint8_t element_type)
Writes the given element_type and name to the output adapter.
output_adapter_t< CharType > oa
the output
@ value
the parser finished reading a JSON value