MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / write_bson_object

Method write_bson_object

Source/Utils/json.hpp:13941–13951  ·  view source on GitHub ↗

! @param[in] j JSON value to serialize @pre j.type() == value_t::object */

Source from the content-addressed store, hash-verified

13939 @pre j.type() == value_t::object
13940 */
13941 void write_bson_object(const typename BasicJsonType::object_t& value)
13942 {
13943 write_number<std::int32_t, true>(static_cast<std::int32_t>(calc_bson_object_size(value)));
13944
13945 for (const auto& el : value)
13946 {
13947 write_bson_element(el.first, el.second);
13948 }
13949
13950 oa->write_character(to_char_type(0x00));
13951 }
13952
13953 //////////
13954 // CBOR //

Callers

nothing calls this directly

Calls 1

write_characterMethod · 0.45

Tested by

no test coverage detected