MCPcopy Create free account
hub / github.com/aixed/WeChat-Hook / get_msgpack_object

Method get_msgpack_object

include/json.hpp:10784–10808  ·  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

10782 @return whether object creation completed
10783 */
10784 bool get_msgpack_object(const std::size_t len)
10785 {
10786 if (JSON_HEDLEY_UNLIKELY(!sax->start_object(len)))
10787 {
10788 return false;
10789 }
10790
10791 string_t key;
10792 for (std::size_t i = 0; i < len; ++i)
10793 {
10794 get();
10795 if (JSON_HEDLEY_UNLIKELY(!get_msgpack_string(key) || !sax->key(key)))
10796 {
10797 return false;
10798 }
10799
10800 if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal()))
10801 {
10802 return false;
10803 }
10804 key.clear();
10805 }
10806
10807 return sax->end_object();
10808 }
10809
10810 ////////////
10811 // UBJSON //

Callers

nothing calls this directly

Calls 5

clearMethod · 0.80
getFunction · 0.70
start_objectMethod · 0.45
keyMethod · 0.45
end_objectMethod · 0.45

Tested by

no test coverage detected