MCPcopy Create free account
hub / github.com/boostorg/json / operator()

Method operator()

bench/bench-conv.cpp:717–735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

715
716 template< class I >
717 clock_type::duration operator()(I) const
718 {
719 auto const start = clock_type::now();
720 while(repeat--)
721 {
722 using data_type = typename supported_file_at<I>::type;
723 data_type v;
724 boost::system::error_code ec;
725 parser_for<data_type> p(opts, &v);
726
727 auto const n = p.write_some(
728 false, fi.text.data(), fi.text.size(), ec );
729 if( !ec.failed() && n < fi.text.size() )
730 ec = error::extra_data;
731 if( ec.failed() )
732 throw boost::system::system_error(ec);
733 }
734 return clock_type::now() - start;
735 }
736 };
737
738 struct serializer

Callers

nothing calls this directly

Calls 4

system_errorClass · 0.85
write_someMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected