TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ from_ubjson() [2/4]

template<template< typename U, typename V, typename... Args > class ObjectType = std::map, template< typename U, typename... Args > class ArrayType = std::vector, class StringType = std::string, class BooleanType = bool, class NumberIntegerType = std::int64_t, class NumberUnsignedType = std::uint64_t, class NumberFloatType = double, template< typename U > class AllocatorType = std::allocator, template< typename T, typename SFINAE=void > class JSONSerializer = adl_serializer, class BinaryType = std::vector<std::uint8_t>>
static JSON_HEDLEY_WARN_UNUSED_RESULT basic_json nlohmann::basic_json< ObjectType, ArrayType, StringType, BooleanType, NumberIntegerType, NumberUnsignedType, NumberFloatType, AllocatorType, JSONSerializer, BinaryType >::from_ubjson ( detail::span_input_adapter &&  i,
const bool  strict = true,
const bool  allow_exceptions = true 
)
inlinestatic

Definition at line 25750 of file json.hpp.

25753 {
25754 basic_json result;
25755 detail::json_sax_dom_parser<basic_json> sdp(result, allow_exceptions);
25756 auto ia = i.get();
25757 // NOLINTNEXTLINE(hicpp-move-const-arg,performance-move-const-arg)
25758 const bool res = binary_reader<decltype(ia)>(std::move(ia)).sax_parse(input_format_t::ubjson, &sdp, strict);
25759 return res ? result : basic_json(value_t::discarded);
25760 }
basic_json(const value_t v)
create an empty value with a given type
Definition: json.hpp:19164
@ discarded
discarded by the parser callback function