! @param[in] len the length of the array @return whether array creation completed */
| 6454 | @return whether array creation completed |
| 6455 | */ |
| 6456 | bool get_msgpack_array(const std::size_t len) |
| 6457 | { |
| 6458 | if (JSON_HEDLEY_UNLIKELY(not sax->start_array(len))) |
| 6459 | { |
| 6460 | return false; |
| 6461 | } |
| 6462 | |
| 6463 | for (std::size_t i = 0; i < len; ++i) |
| 6464 | { |
| 6465 | if (JSON_HEDLEY_UNLIKELY(not parse_msgpack_internal())) |
| 6466 | { |
| 6467 | return false; |
| 6468 | } |
| 6469 | } |
| 6470 | |
| 6471 | return sax->end_array(); |
| 6472 | } |
| 6473 | |
| 6474 | /*! |
| 6475 | @param[in] len the length of the object |
nothing calls this directly
no test coverage detected