MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / get_msgpack_object

Method get_msgpack_object

external/json/json.hpp:7672–7696  ·  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

7670 @return whether object creation completed
7671 */
7672 bool get_msgpack_object(const std::size_t len)
7673 {
7674 if (JSON_UNLIKELY(not sax->start_object(len)))
7675 {
7676 return false;
7677 }
7678
7679 string_t key;
7680 for (std::size_t i = 0; i < len; ++i)
7681 {
7682 get();
7683 if (JSON_UNLIKELY(not get_msgpack_string(key) or not sax->key(key)))
7684 {
7685 return false;
7686 }
7687
7688 if (JSON_UNLIKELY(not parse_msgpack_internal()))
7689 {
7690 return false;
7691 }
7692 key.clear();
7693 }
7694
7695 return sax->end_object();
7696 }
7697
7698 ////////////
7699 // 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