TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ write_bson_binary()

template<typename BasicJsonType , typename CharType >
void nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_binary ( const string_t &  name,
const binary_t &  value 
)
inlineprivate

Writes a BSON element with key name and binary value value.

Definition at line 14976 of file json.hpp.

14978 {
14979 write_bson_entry_header(name, 0x05);
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.
Definition: json.hpp:14803
output_adapter_t< CharType > oa
the output
Definition: json.hpp:15519
@ value
the parser finished reading a JSON value