! @param[in] len the length of the array @return whether array creation completed */
| 10913 | @return whether array creation completed |
| 10914 | */ |
| 10915 | bool get_msgpack_array(const std::size_t len) |
| 10916 | { |
| 10917 | if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len))) |
| 10918 | { |
| 10919 | return false; |
| 10920 | } |
| 10921 | |
| 10922 | for (std::size_t i = 0; i < len; ++i) |
| 10923 | { |
| 10924 | if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal())) |
| 10925 | { |
| 10926 | return false; |
| 10927 | } |
| 10928 | } |
| 10929 | |
| 10930 | return sax->end_array(); |
| 10931 | } |
| 10932 | |
| 10933 | /*! |
| 10934 | @param[in] len the length of the object |
nothing calls this directly
no test coverage detected