MCPcopy Create free account
hub / github.com/dobin/RedEdr / start_array

Function start_array

RedEdrShared/json.hpp:6930–6940  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6928 }
6929
6930 bool start_array(std::size_t len)
6931 {
6932 ref_stack.push_back(handle_value(BasicJsonType::value_t::array));
6933
6934 if (JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size()))
6935 {
6936 JSON_THROW(out_of_range::create(408, concat("excessive array size: ", std::to_string(len)), ref_stack.back()));
6937 }
6938
6939 return true;
6940 }
6941
6942 bool end_array()
6943 {

Callers

nothing calls this directly

Calls 3

createFunction · 0.85
concatFunction · 0.85
to_stringFunction · 0.70

Tested by

no test coverage detected