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

Method get_msgpack_object

Source/Utils/json.hpp:9361–9385  ·  view source on GitHub ↗

! @param[in] len the length of the object @return whether object creation completed */

Source from the content-addressed store, hash-verified

9359 @return whether object creation completed
9360 */
9361 bool get_msgpack_object(const std::size_t len)
9362 {
9363 if (JSON_HEDLEY_UNLIKELY(!sax->start_object(len)))
9364 {
9365 return false;
9366 }
9367
9368 string_t key;
9369 for (std::size_t i = 0; i < len; ++i)
9370 {
9371 get();
9372 if (JSON_HEDLEY_UNLIKELY(!get_msgpack_string(key) || !sax->key(key)))
9373 {
9374 return false;
9375 }
9376
9377 if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal()))
9378 {
9379 return false;
9380 }
9381 key.clear();
9382 }
9383
9384 return sax->end_object();
9385 }
9386
9387 ////////////
9388 // UBJSON //

Callers

nothing calls this directly

Calls 5

getFunction · 0.85
start_objectMethod · 0.45
keyMethod · 0.45
clearMethod · 0.45
end_objectMethod · 0.45

Tested by

no test coverage detected