! @param[in] len the length of the array @return whether array creation completed */
| 9337 | @return whether array creation completed |
| 9338 | */ |
| 9339 | bool get_msgpack_array(const std::size_t len) |
| 9340 | { |
| 9341 | if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len))) |
| 9342 | { |
| 9343 | return false; |
| 9344 | } |
| 9345 | |
| 9346 | for (std::size_t i = 0; i < len; ++i) |
| 9347 | { |
| 9348 | if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal())) |
| 9349 | { |
| 9350 | return false; |
| 9351 | } |
| 9352 | } |
| 9353 | |
| 9354 | return sax->end_array(); |
| 9355 | } |
| 9356 | |
| 9357 | /*! |
| 9358 | @param[in] len the length of the object |
nothing calls this directly
no test coverage detected