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