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