! @return The size of the BSON-encoded string in @a value */
| 13673 | @return The size of the BSON-encoded string in @a value |
| 13674 | */ |
| 13675 | static std::size_t calc_bson_string_size(const string_t& value) |
| 13676 | { |
| 13677 | return sizeof(std::int32_t) + value.size() + 1ul; |
| 13678 | } |
| 13679 | |
| 13680 | /*! |
| 13681 | @brief Writes a BSON element with key @a name and string value @a value |