! @param[in] len the length of the object @return whether object creation completed */
| 9359 | @return whether object creation completed |
| 9360 | */ |
| 9361 | bool get_msgpack_object(const std::size_t len) |
| 9362 | { |
| 9363 | if (JSON_HEDLEY_UNLIKELY(!sax->start_object(len))) |
| 9364 | { |
| 9365 | return false; |
| 9366 | } |
| 9367 | |
| 9368 | string_t key; |
| 9369 | for (std::size_t i = 0; i < len; ++i) |
| 9370 | { |
| 9371 | get(); |
| 9372 | if (JSON_HEDLEY_UNLIKELY(!get_msgpack_string(key) || !sax->key(key))) |
| 9373 | { |
| 9374 | return false; |
| 9375 | } |
| 9376 | |
| 9377 | if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal())) |
| 9378 | { |
| 9379 | return false; |
| 9380 | } |
| 9381 | key.clear(); |
| 9382 | } |
| 9383 | |
| 9384 | return sax->end_object(); |
| 9385 | } |
| 9386 | |
| 9387 | //////////// |
| 9388 | // UBJSON // |
nothing calls this directly
no test coverage detected