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

Method get_msgpack_array

include/json/json.hpp:10762–10778  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

10760 @return whether array creation completed
10761 */
10762 bool get_msgpack_array(const std::size_t len)
10763 {
10764 if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len)))
10765 {
10766 return false;
10767 }
10768
10769 for (std::size_t i = 0; i < len; ++i)
10770 {
10771 if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal()))
10772 {
10773 return false;
10774 }
10775 }
10776
10777 return sax->end_array();
10778 }
10779
10780 /*!
10781 @param[in] len the length of the object

Callers

nothing calls this directly

Calls 2

start_arrayMethod · 0.45
end_arrayMethod · 0.45

Tested by

no test coverage detected