! @param[in] len the length of the object @return whether object creation completed */
| 7670 | @return whether object creation completed |
| 7671 | */ |
| 7672 | bool get_msgpack_object(const std::size_t len) |
| 7673 | { |
| 7674 | if (JSON_UNLIKELY(not sax->start_object(len))) |
| 7675 | { |
| 7676 | return false; |
| 7677 | } |
| 7678 | |
| 7679 | string_t key; |
| 7680 | for (std::size_t i = 0; i < len; ++i) |
| 7681 | { |
| 7682 | get(); |
| 7683 | if (JSON_UNLIKELY(not get_msgpack_string(key) or not sax->key(key))) |
| 7684 | { |
| 7685 | return false; |
| 7686 | } |
| 7687 | |
| 7688 | if (JSON_UNLIKELY(not parse_msgpack_internal())) |
| 7689 | { |
| 7690 | return false; |
| 7691 | } |
| 7692 | key.clear(); |
| 7693 | } |
| 7694 | |
| 7695 | return sax->end_object(); |
| 7696 | } |
| 7697 | |
| 7698 | //////////// |
| 7699 | // UBJSON // |
nothing calls this directly
no test coverage detected