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

Method write_bson_entry_header

Source/Utils/json.hpp:13643–13650  ·  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

13641 @brief Writes the given @a element_type and @a name to the output adapter
13642 */
13643 void write_bson_entry_header(const string_t& name,
13644 const std::uint8_t element_type)
13645 {
13646 oa->write_character(to_char_type(element_type)); // boolean
13647 oa->write_characters(
13648 reinterpret_cast<const CharType*>(name.c_str()),
13649 name.size() + 1u);
13650 }
13651
13652 /*!
13653 @brief Writes a BSON element with key @a name and boolean value @a value

Callers

nothing calls this directly

Calls 3

write_characterMethod · 0.45
write_charactersMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected