MCPcopy Create free account
hub / github.com/dobin/RedEdr / get_msgpack_array

Method get_msgpack_array

RedEdrShared/json.hpp:10947–10963  ·  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

10945 @return whether array creation completed
10946 */
10947 bool get_msgpack_array(const std::size_t len)
10948 {
10949 if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len)))
10950 {
10951 return false;
10952 }
10953
10954 for (std::size_t i = 0; i < len; ++i)
10955 {
10956 if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal()))
10957 {
10958 return false;
10959 }
10960 }
10961
10962 return sax->end_array();
10963 }
10964
10965 /*!
10966 @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