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

Method calc_bson_string_size

Source/Utils/json.hpp:13675–13678  ·  view source on GitHub ↗

! @return The size of the BSON-encoded string in @a value */

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected