MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / get_msgpack_object

Method get_msgpack_object

native/thirdpart/json/json.hpp:6478–6502  ·  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

6476 @return whether object creation completed
6477 */
6478 bool get_msgpack_object(const std::size_t len)
6479 {
6480 if (JSON_HEDLEY_UNLIKELY(not sax->start_object(len)))
6481 {
6482 return false;
6483 }
6484
6485 string_t key;
6486 for (std::size_t i = 0; i < len; ++i)
6487 {
6488 get();
6489 if (JSON_HEDLEY_UNLIKELY(not get_msgpack_string(key) or not sax->key(key)))
6490 {
6491 return false;
6492 }
6493
6494 if (JSON_HEDLEY_UNLIKELY(not parse_msgpack_internal()))
6495 {
6496 return false;
6497 }
6498 key.clear();
6499 }
6500
6501 return sax->end_object();
6502 }
6503
6504 ////////////
6505 // UBJSON //

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected