TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ write_bson_object()

template<typename BasicJsonType , typename CharType >
void nlohmann::detail::binary_writer< BasicJsonType, CharType >::write_bson_object ( const typename BasicJsonType::object_t &  value)
inlineprivate
Parameters
[in]valueJSON value to serialize
Precondition
value.type() == value_t::object

Definition at line 15099 of file json.hpp.

15100 {
15101 write_number<std::int32_t, true>(static_cast<std::int32_t>(calc_bson_object_size(value)));
15102
15103 for (const auto &el : value)
15104 {
15105 write_bson_element(el.first, el.second);
15106 }
15107
15108 oa->write_character(to_char_type(0x00));
15109 }
output_adapter_t< CharType > oa
the output
Definition: json.hpp:15519
void write_bson_element(const string_t &name, const BasicJsonType &j)
Serializes the JSON value j to BSON and associates it with the key name.
Definition: json.hpp:15038
static std::size_t calc_bson_object_size(const typename BasicJsonType::object_t &value)
Calculates the size of the BSON serialization of the given JSON-object j.
Definition: json.hpp:15085