MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / start_array

Function start_array

extern/json/json.hpp:6833–6843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6831 }
6832
6833 bool start_array(std::size_t len)
6834 {
6835 ref_stack.push_back(handle_value(BasicJsonType::value_t::array));
6836
6837 if (JSON_HEDLEY_UNLIKELY(len != static_cast<std::size_t>(-1) && len > ref_stack.back()->max_size()))
6838 {
6839 JSON_THROW(out_of_range::create(408, concat("excessive array size: ", std::to_string(len)), ref_stack.back()));
6840 }
6841
6842 return true;
6843 }
6844
6845 bool end_array()
6846 {

Callers

nothing calls this directly

Calls 5

createFunction · 0.70
concatFunction · 0.70
to_stringFunction · 0.70
push_backMethod · 0.45
max_sizeMethod · 0.45

Tested by

no test coverage detected