| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // | ||
| 2 | // Copyright (c) 2023 Vinnie Falco (vinnie.falco@gmail.com) | ||
| 3 | // | ||
| 4 | // Distributed under the Boost Software License, Version 1.0. (See accompanying | ||
| 5 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | ||
| 6 | // | ||
| 7 | // Official repository: https://github.com/CPPAlliance/http_proto | ||
| 8 | // | ||
| 9 | |||
| 10 | #ifndef BOOST_BUFFERS_IMPL_FILTER_IPP | ||
| 11 | #define BOOST_BUFFERS_IMPL_FILTER_IPP | ||
| 12 | |||
| 13 | #include <boost/http_proto/filter.hpp> | ||
| 14 | #include <boost/buffers/range.hpp> | ||
| 15 | |||
| 16 | namespace boost { | ||
| 17 | namespace http_proto { | ||
| 18 | |||
| 19 | auto | ||
| 20 | ✗ | filter:: | |
| 21 | on_process( | ||
| 22 | buffers::mutable_buffer_span out, | ||
| 23 | buffers::const_buffer_span in, | ||
| 24 | bool more) -> | ||
| 25 | results | ||
| 26 | { | ||
| 27 | ✗ | results rv; | |
| 28 | ✗ | auto it0 = buffers::begin(in); | |
| 29 | ✗ | auto it1 = buffers::begin(out); | |
| 30 | ✗ | auto const end0 = buffers::end(in); | |
| 31 | ✗ | auto const end1 = buffers::end(out); | |
| 32 | ✗ | while( | |
| 33 | ✗ | it0 != end0 || | |
| 34 | it1 != end1) | ||
| 35 | { | ||
| 36 | ✗ | ++it1; | |
| 37 | (void)more; | ||
| 38 | (void)end0; | ||
| 39 | (void)it0; | ||
| 40 | } | ||
| 41 | ✗ | return rv; | |
| 42 | } | ||
| 43 | |||
| 44 | } // http_proto | ||
| 45 | } // boost | ||
| 46 | |||
| 47 | #endif | ||
| 48 |