MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / get_msgpack_array

Method get_msgpack_array

dependencies/json/json.hpp:9409–9425  ·  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

9407 @return whether array creation completed
9408 */
9409 bool get_msgpack_array(const std::size_t len)
9410 {
9411 if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len)))
9412 {
9413 return false;
9414 }
9415
9416 for (std::size_t i = 0; i < len; ++i)
9417 {
9418 if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal()))
9419 {
9420 return false;
9421 }
9422 }
9423
9424 return sax->end_array();
9425 }
9426
9427 /*!
9428 @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