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

Function to_ubjson

Source/Utils/json.hpp:23748–23755  ·  view source on GitHub ↗

! @brief create a UBJSON serialization of a given JSON value Serializes a given JSON value @a j to a byte vector using the UBJSON (Universal Binary JSON) serialization format. UBJSON aims to be more compact than JSON itself, yet more efficient to parse. The library uses the following mapping from JSON values types to UBJSON types according to the U

Source from the content-addressed store, hash-verified

23746 @since version 3.1.0
23747 */
23748 static std::vector<uint8_t> to_ubjson(const basic_json& j,
23749 const bool use_size = false,
23750 const bool use_type = false)
23751 {
23752 std::vector<uint8_t> result;
23753 to_ubjson(j, result, use_size, use_type);
23754 return result;
23755 }
23756
23757 static void to_ubjson(const basic_json& j, detail::output_adapter<uint8_t> o,
23758 const bool use_size = false, const bool use_type = false)

Callers

nothing calls this directly

Calls 1

write_ubjsonMethod · 0.80

Tested by

no test coverage detected