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

Method write_bson_entry_header

Source/external/json.hpp:15890–15897  ·  view source on GitHub ↗

! @brief Writes the given @a element_type and @a name to the output adapter */

Source from the content-addressed store, hash-verified

15888 @brief Writes the given @a element_type and @a name to the output adapter
15889 */
15890 void write_bson_entry_header(const string_t& name,
15891 const std::uint8_t element_type)
15892 {
15893 oa->write_character(to_char_type(element_type)); // boolean
15894 oa->write_characters(
15895 reinterpret_cast<const CharType*>(name.c_str()),
15896 name.size() + 1u);
15897 }
15898
15899 /*!
15900 @brief Writes a BSON element with key @a name and boolean value @a value

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
write_characterMethod · 0.45

Tested by

no test coverage detected