! @param[in] len the length of the array @return whether array creation completed */
| 10843 | @return whether array creation completed |
| 10844 | */ |
| 10845 | bool get_msgpack_array(const std::size_t len) |
| 10846 | { |
| 10847 | if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len))) |
| 10848 | { |
| 10849 | return false; |
| 10850 | } |
| 10851 | |
| 10852 | for (std::size_t i = 0; i < len; ++i) |
| 10853 | { |
| 10854 | if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal())) |
| 10855 | { |
| 10856 | return false; |
| 10857 | } |
| 10858 | } |
| 10859 | |
| 10860 | return sax->end_array(); |
| 10861 | } |
| 10862 | |
| 10863 | /*! |
| 10864 | @param[in] len the length of the object |
nothing calls this directly
no test coverage detected