! @param[in] len the length of the array @return whether array creation completed */
| 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 |
nothing calls this directly
no test coverage detected