MCPcopy Create free account
hub / github.com/M4THYOU/TokenDagger / get_msgpack_array

Method get_msgpack_array

src/nlohmann/json.hpp:10915–10931  ·  view source on GitHub ↗

! @param[in] len the length of the array @return whether array creation completed */

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

start_arrayMethod · 0.45
end_arrayMethod · 0.45

Tested by

no test coverage detected