TerraForge3D  2.3.1
3D Terrain And Landscape Generator

◆ get_msgpack_object()

template<typename BasicJsonType , typename InputAdapterType , typename SAX = json_sax_dom_parser<BasicJsonType>>
bool nlohmann::detail::binary_reader< BasicJsonType, InputAdapterType, SAX >::get_msgpack_object ( const std::size_t  len)
inlineprivate
Parameters
[in]lenthe length of the object
Returns
whether object creation completed

Definition at line 10188 of file json.hpp.

10189 {
10190 if (JSON_HEDLEY_UNLIKELY(!sax->start_object(len)))
10191 {
10192 return false;
10193 }
10194
10195 string_t key;
10196
10197 for (std::size_t i = 0; i < len; ++i)
10198 {
10199 get();
10200
10201 if (JSON_HEDLEY_UNLIKELY(!get_msgpack_string(key) || !sax->key(key)))
10202 {
10203 return false;
10204 }
10205
10206 if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal()))
10207 {
10208 return false;
10209 }
10210
10211 key.clear();
10212 }
10213
10214 return sax->end_object();
10215 }
json_sax_t * sax
the SAX parser
Definition: json.hpp:10987
char_int_type get()
get next character from the input
Definition: json.hpp:10769
bool get_msgpack_string(string_t &result)
reads a MessagePack string
Definition: json.hpp:9973
@ key
the parser read a key of a value in an object