MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / write_bson_entry_header

Method write_bson_entry_header

dependencies/json/json.hpp:13718–13725  ·  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

13716 @brief Writes the given @a element_type and @a name to the output adapter
13717 */
13718 void write_bson_entry_header(const string_t& name,
13719 const std::uint8_t element_type)
13720 {
13721 oa->write_character(to_char_type(element_type)); // boolean
13722 oa->write_characters(
13723 reinterpret_cast<const CharType*>(name.c_str()),
13724 name.size() + 1u);
13725 }
13726
13727 /*!
13728 @brief Writes a BSON element with key @a name and boolean value @a value

Callers

nothing calls this directly

Calls 2

write_characterMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected