MCPcopy Create free account
hub / github.com/InkboxSoftware/all-screen-keyboard / get_msgpack_array

Method get_msgpack_array

keyboard/src/json.hpp:11617–11633  ·  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

11615 @return whether array creation completed
11616 */
11617 bool get_msgpack_array(const std::size_t len)
11618 {
11619 if (JSON_HEDLEY_UNLIKELY(!sax->start_array(len)))
11620 {
11621 return false;
11622 }
11623
11624 for (std::size_t i = 0; i < len; ++i)
11625 {
11626 if (JSON_HEDLEY_UNLIKELY(!parse_msgpack_internal()))
11627 {
11628 return false;
11629 }
11630 }
11631
11632 return sax->end_array();
11633 }
11634
11635 /*!
11636 @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