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

Method write_bson_boolean

Source/Utils/json.hpp:13655–13660  ·  view source on GitHub ↗

! @brief Writes a BSON element with key @a name and boolean value @a value */

Source from the content-addressed store, hash-verified

13653 @brief Writes a BSON element with key @a name and boolean value @a value
13654 */
13655 void write_bson_boolean(const string_t& name,
13656 const bool value)
13657 {
13658 write_bson_entry_header(name, 0x08);
13659 oa->write_character(value ? to_char_type(0x01) : to_char_type(0x00));
13660 }
13661
13662 /*!
13663 @brief Writes a BSON element with key @a name and double value @a value

Callers

nothing calls this directly

Calls 1

write_characterMethod · 0.45

Tested by

no test coverage detected