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

Method write_number_with_ubjson_prefix

Source/Utils/json.hpp:13988–13996  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13986 template<typename NumberType, typename std::enable_if<
13987 std::is_floating_point<NumberType>::value, int>::type = 0>
13988 void write_number_with_ubjson_prefix(const NumberType n,
13989 const bool add_prefix)
13990 {
13991 if (add_prefix)
13992 {
13993 oa->write_character(get_ubjson_float_prefix(n));
13994 }
13995 write_number(n);
13996 }
13997
13998 // UBJSON: write number (unsigned integer)
13999 template<typename NumberType, typename std::enable_if<

Callers

nothing calls this directly

Calls 3

dumpMethod · 0.80
write_characterMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected