! @param[in] len the length of the array @return whether array creation completed */
| 11615 | @return whether array creation completed |
| 11616 | */ |
| 11617 | bool get_msgpack_array(const std::size_t len) |
| 11618 | { |
| 11619 | if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len))) |
| 11620 | { |
| 11621 | return false; |
| 11622 | } |
| 11623 | |
| 11624 | for (std::size_t i = 0; i < len; ++i) |
| 11625 | { |
| 11626 | if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal())) |
| 11627 | { |
| 11628 | return false; |
| 11629 | } |
| 11630 | } |
| 11631 | |
| 11632 | return sax->end_array(); |
| 11633 | } |
| 11634 | |
| 11635 | /*! |
| 11636 | @param[in] len the length of the object |
nothing calls this directly
no test coverage detected