MCPcopy Create free account
hub / github.com/FeJQ/AUPK / get_msgpack_array

Method get_msgpack_array

art/runtime/json.hpp:9679–9695  ·  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

9677 @return whether array creation completed
9678 */
9679 bool get_msgpack_array(const std::size_t len)
9680 {
9681 if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len)))
9682 {
9683 return false;
9684 }
9685
9686 for (std::size_t i = 0; i < len; ++i)
9687 {
9688 if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal()))
9689 {
9690 return false;
9691 }
9692 }
9693
9694 return sax->end_array();
9695 }
9696
9697 /*!
9698 @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