MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / write_bson_object

Method write_bson_object

Source/external/json.hpp:16189–16199  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

16187 @pre value.type() == value_t::object
16188 */
16189 void write_bson_object(const typename BasicJsonType::object_t& value)
16190 {
16191 write_number<std::int32_t>(static_cast<std::int32_t>(calc_bson_object_size(value)), true);
16192
16193 for (const auto& el : value)
16194 {
16195 write_bson_element(el.first, el.second);
16196 }
16197
16198 oa->write_character(to_char_type(0x00));
16199 }
16200
16201 //////////
16202 // CBOR //

Callers

nothing calls this directly

Calls 1

write_characterMethod · 0.45

Tested by

no test coverage detected