MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / get_msgpack_array

Method get_msgpack_array

Source/Utils/json.hpp:9339–9355  ·  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

9337 @return whether array creation completed
9338 */
9339 bool get_msgpack_array(const std::size_t len)
9340 {
9341 if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len)))
9342 {
9343 return false;
9344 }
9345
9346 for (std::size_t i = 0; i < len; ++i)
9347 {
9348 if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal()))
9349 {
9350 return false;
9351 }
9352 }
9353
9354 return sax->end_array();
9355 }
9356
9357 /*!
9358 @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