MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / to_ubjson

Function to_ubjson

dependencies/json/json.hpp:23832–23839  ·  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 UBJSON specification:

Source from the content-addressed store, hash-verified

23830 @since version 3.1.0
23831 */
23832 static std::vector<uint8_t> to_ubjson(const basic_json& j,
23833 const bool use_size = false,
23834 const bool use_type = false)
23835 {
23836 std::vector<uint8_t> result;
23837 to_ubjson(j, result, use_size, use_type);
23838 return result;
23839 }
23840
23841 static void to_ubjson(const basic_json& j, detail::output_adapter<uint8_t> o,
23842 const bool use_size = false, const bool use_type = false)

Callers

nothing calls this directly

Calls 1

write_ubjsonMethod · 0.45

Tested by

no test coverage detected