! @param[in] len the length of the object @return whether object creation completed */
| 6476 | @return whether object creation completed |
| 6477 | */ |
| 6478 | bool get_msgpack_object(const std::size_t len) |
| 6479 | { |
| 6480 | if (JSON_HEDLEY_UNLIKELY(not sax->start_object(len))) |
| 6481 | { |
| 6482 | return false; |
| 6483 | } |
| 6484 | |
| 6485 | string_t key; |
| 6486 | for (std::size_t i = 0; i < len; ++i) |
| 6487 | { |
| 6488 | get(); |
| 6489 | if (JSON_HEDLEY_UNLIKELY(not get_msgpack_string(key) or not sax->key(key))) |
| 6490 | { |
| 6491 | return false; |
| 6492 | } |
| 6493 | |
| 6494 | if (JSON_HEDLEY_UNLIKELY(not parse_msgpack_internal())) |
| 6495 | { |
| 6496 | return false; |
| 6497 | } |
| 6498 | key.clear(); |
| 6499 | } |
| 6500 | |
| 6501 | return sax->end_object(); |
| 6502 | } |
| 6503 | |
| 6504 | //////////// |
| 6505 | // UBJSON // |
nothing calls this directly
no test coverage detected