MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / get_msgpack_array

Method get_msgpack_array

external/json/json.hpp:7650–7666  ·  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

7648 @return whether array creation completed
7649 */
7650 bool get_msgpack_array(const std::size_t len)
7651 {
7652 if (JSON_UNLIKELY(not sax->start_array(len)))
7653 {
7654 return false;
7655 }
7656
7657 for (std::size_t i = 0; i < len; ++i)
7658 {
7659 if (JSON_UNLIKELY(not parse_msgpack_internal()))
7660 {
7661 return false;
7662 }
7663 }
7664
7665 return sax->end_array();
7666 }
7667
7668 /*!
7669 @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