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

Method calc_bson_binary_size

Source/Utils/json.hpp:13790–13793  ·  view source on GitHub ↗

! @return The size of the BSON-encoded binary array @a value */

Source from the content-addressed store, hash-verified

13788 @return The size of the BSON-encoded binary array @a value
13789 */
13790 static std::size_t calc_bson_binary_size(const typename BasicJsonType::binary_t& value)
13791 {
13792 return sizeof(std::int32_t) + value.size() + 1ul;
13793 }
13794
13795 /*!
13796 @brief Writes a BSON element with key @a name and array @a value

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected