! @param[in] len the length of the array @return whether array creation completed */
| 9407 | @return whether array creation completed |
| 9408 | */ |
| 9409 | bool get_msgpack_array(const std::size_t len) |
| 9410 | { |
| 9411 | if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len))) |
| 9412 | { |
| 9413 | return false; |
| 9414 | } |
| 9415 | |
| 9416 | for (std::size_t i = 0; i < len; ++i) |
| 9417 | { |
| 9418 | if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal())) |
| 9419 | { |
| 9420 | return false; |
| 9421 | } |
| 9422 | } |
| 9423 | |
| 9424 | return sax->end_array(); |
| 9425 | } |
| 9426 | |
| 9427 | /*! |
| 9428 | @param[in] len the length of the object |
nothing calls this directly
no test coverage detected