TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ calc_bson_integer_size()

template<typename BasicJsonType , typename CharType >
static std::size_t nlohmann::detail::binary_writer< BasicJsonType, CharType >::calc_bson_integer_size ( const std::int64_t  value)
inlinestaticprivate
Returns
The size of the BSON-encoded integer value

Definition at line 14864 of file json.hpp.

14865 {
14866 return (std::numeric_limits<std::int32_t>::min)() <= value && value <= (std::numeric_limits<std::int32_t>::max)()
14867 ? sizeof(std::int32_t)
14868 : sizeof(std::int64_t);
14869 }