MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / visit_begin_array

Function visit_begin_array

include/jsoncons_ext/cbor/cbor_encoder.hpp:353–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351 }
352
353 JSONCONS_VISITOR_RETURN_TYPE visit_begin_array(semantic_tag, const ser_context&, std::error_code& ec) override
354 {
355 if (JSONCONS_UNLIKELY(++nesting_depth_ > max_nesting_depth_))
356 {
357 ec = cbor_errc::max_nesting_depth_exceeded;
358 JSONCONS_VISITOR_RETURN;
359 }
360 stack_.emplace_back(cbor_container_type::indefinite_length_array);
361 sink_.push_back(0x9f);
362 JSONCONS_VISITOR_RETURN;
363 }
364
365 JSONCONS_VISITOR_RETURN_TYPE visit_begin_array(std::size_t length, semantic_tag, const ser_context&, std::error_code& ec) override
366 {

Callers 3

write_decimal_valueFunction · 0.70
write_hexfloat_valueFunction · 0.70
visit_begin_multi_dimFunction · 0.70

Calls 2

native_to_bigFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected