| 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 |
nothing calls this directly
no test coverage detected