! @param[in] len the length of the array @return whether array creation completed */
| 7648 | @return whether array creation completed |
| 7649 | */ |
| 7650 | bool get_msgpack_array(const std::size_t len) |
| 7651 | { |
| 7652 | if (JSON_UNLIKELY(not sax->start_array(len))) |
| 7653 | { |
| 7654 | return false; |
| 7655 | } |
| 7656 | |
| 7657 | for (std::size_t i = 0; i < len; ++i) |
| 7658 | { |
| 7659 | if (JSON_UNLIKELY(not parse_msgpack_internal())) |
| 7660 | { |
| 7661 | return false; |
| 7662 | } |
| 7663 | } |
| 7664 | |
| 7665 | return sax->end_array(); |
| 7666 | } |
| 7667 | |
| 7668 | /*! |
| 7669 | @param[in] len the length of the object |
nothing calls this directly
no test coverage detected