! @brief Writes the given @a element_type and @a name to the output adapter */
| 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 |
nothing calls this directly
no test coverage detected