MCPcopy Create free account
hub / github.com/Ahmeth4n/renef / get_msgpack_array

Method get_msgpack_array

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

11553 @return whether array creation completed
11554 */
11555 bool get_msgpack_array(const std::size_t len)
11556 {
11557 if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len)))
11558 {
11559 return false;
11560 }
11561
11562 for (std::size_t i = 0; i < len; ++i)
11563 {
11564 if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal()))
11565 {
11566 return false;
11567 }
11568 }
11569
11570 return sax->end_array();
11571 }
11572
11573 /*!
11574 @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