MCPcopy Create free account
hub / github.com/Open-GD/OpenGD / write_bson_boolean

Method write_bson_boolean

Source/external/json.hpp:15902–15907  ·  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

15900 @brief Writes a BSON element with key @a name and boolean value @a value
15901 */
15902 void write_bson_boolean(const string_t& name,
15903 const bool value)
15904 {
15905 write_bson_entry_header(name, 0x08);
15906 oa->write_character(value ? to_char_type(0x01) : to_char_type(0x00));
15907 }
15908
15909 /*!
15910 @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