! @param[in] len the length of the object @return whether object creation completed */
| 10782 | @return whether object creation completed |
| 10783 | */ |
| 10784 | bool get_msgpack_object(const std::size_t len) |
| 10785 | { |
| 10786 | if (JSON_HEDLEY_UNLIKELY(!sax->start_object(len))) |
| 10787 | { |
| 10788 | return false; |
| 10789 | } |
| 10790 | |
| 10791 | string_t key; |
| 10792 | for (std::size_t i = 0; i < len; ++i) |
| 10793 | { |
| 10794 | get(); |
| 10795 | if (JSON_HEDLEY_UNLIKELY(!get_msgpack_string(key) || !sax->key(key))) |
| 10796 | { |
| 10797 | return false; |
| 10798 | } |
| 10799 | |
| 10800 | if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal())) |
| 10801 | { |
| 10802 | return false; |
| 10803 | } |
| 10804 | key.clear(); |
| 10805 | } |
| 10806 | |
| 10807 | return sax->end_object(); |
| 10808 | } |
| 10809 | |
| 10810 | //////////// |
| 10811 | // UBJSON // |
nothing calls this directly
no test coverage detected