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

Function visit_int64

include/jsoncons/json_encoder.hpp:738–758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

736 }
737
738 JSONCONS_VISITOR_RETURN_TYPE visit_int64(int64_t value,
739 semantic_tag,
740 const ser_context&,
741 std::error_code&) final
742 {
743 if (!stack_.empty())
744 {
745 if (stack_.back().is_array())
746 {
747 begin_scalar_value();
748 }
749 if (!stack_.back().is_multi_line() && column_ >= options_.line_length_limit())
750 {
751 break_line();
752 }
753 }
754 std::size_t length = jsoncons::from_integer(value, sink_);
755 column_ += length;
756 end_value();
757 JSONCONS_VISITOR_RETURN;
758 }
759
760 JSONCONS_VISITOR_RETURN_TYPE visit_uint64(uint64_t value,
761 semantic_tag,

Callers 3

int64_valueMethod · 0.70
int64_valueMethod · 0.70
int64_valueMethod · 0.70

Calls 12

begin_scalar_valueFunction · 0.85
break_lineFunction · 0.85
from_integerFunction · 0.85
is_multi_lineMethod · 0.80
line_length_limitMethod · 0.80
end_valueFunction · 0.70
emptyMethod · 0.45
is_arrayMethod · 0.45
backMethod · 0.45
countMethod · 0.45
push_backMethod · 0.45
increment_countMethod · 0.45

Tested by

no test coverage detected