include/boost/capy/buffers.hpp

100.0% Lines (65 / 65) 92.8% Functions (219 / 236)
buffers.hpp
f(x) Functions (236)
Function Calls Lines Blocks
boost::capy::mutable_buffer::mutable_buffer() :55 22x 100.0% 100.0% boost::capy::mutable_buffer::mutable_buffer(void*, unsigned long) :83 35430x 100.0% 100.0% boost::capy::mutable_buffer::data() const :97 54281x 100.0% 100.0% boost::capy::mutable_buffer::size() const :106 80862x 100.0% 100.0% boost::capy::mutable_buffer::operator+=(unsigned long) :118 17764x 100.0% 100.0% boost::capy::const_buffer::const_buffer() :146 58x 100.0% 100.0% boost::capy::const_buffer::const_buffer(void const*, unsigned long) :173 32004x 100.0% 100.0% boost::capy::const_buffer::const_buffer(boost::capy::mutable_buffer const&) :184 8043x 100.0% 100.0% boost::capy::const_buffer::data() const :198 46590x 100.0% 100.0% boost::capy::const_buffer::size() const :207 78634x 100.0% 100.0% boost::capy::const_buffer::operator+=(unsigned long) :219 17409x 100.0% 100.0% boost::capy::(anonymous namespace)::converts_to_both const* boost::capy::._anon_117::operator()<boost::capy::(anonymous namespace)::converts_to_both>(boost::capy::(anonymous namespace)::converts_to_both const&) const :326 0 0.0% 0.0% boost::capy::(anonymous namespace)::converts_to_const_range_of_mutable const* boost::capy::._anon_117::operator()<boost::capy::(anonymous namespace)::converts_to_const_range_of_mutable>(boost::capy::(anonymous namespace)::converts_to_const_range_of_mutable const&) const :326 2x 100.0% 100.0% boost::capy::(anonymous namespace)::user_buffer const* boost::capy::._anon_117::operator()<boost::capy::(anonymous namespace)::user_buffer>(boost::capy::(anonymous namespace)::user_buffer const&) const :326 1x 100.0% 100.0% boost::capy::(anonymous namespace)::user_const const* boost::capy::._anon_117::operator()<boost::capy::(anonymous namespace)::user_const>(boost::capy::(anonymous namespace)::user_const const&) const :326 1x 100.0% 100.0% boost::capy::(anonymous namespace)::user_mutable const* boost::capy::._anon_117::operator()<boost::capy::(anonymous namespace)::user_mutable>(boost::capy::(anonymous namespace)::user_mutable const&) const :326 1x 100.0% 100.0% boost::capy::const_buffer const* boost::capy::._anon_117::operator()<boost::capy::const_buffer>(boost::capy::const_buffer const&) const :326 626x 100.0% 100.0% boost::capy::const_buffer const* boost::capy::._anon_130::operator()<boost::capy::const_buffer>(boost::capy::const_buffer const&) const :326 98x 100.0% 100.0% boost::capy::const_buffer const* boost::capy::._anon_151::operator()<boost::capy::const_buffer>(boost::capy::const_buffer const&) const :326 98x 100.0% 100.0% boost::capy::mutable_buffer const* boost::capy::._anon_117::operator()<boost::capy::mutable_buffer>(boost::capy::mutable_buffer const&) const :326 5736x 100.0% 100.0% boost::capy::mutable_buffer const* boost::capy::._anon_130::operator()<boost::capy::mutable_buffer>(boost::capy::mutable_buffer const&) const :326 113x 100.0% 100.0% boost::capy::mutable_buffer const* boost::capy::._anon_151::operator()<boost::capy::mutable_buffer>(boost::capy::mutable_buffer const&) const :326 183x 100.0% 100.0% auto boost::capy::._anon_117::operator()<(anonymous namespace)::chained_buffers>((anonymous namespace)::chained_buffers const&) const :339 1x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::(anonymous namespace)::ambiguous_range_of_const>(boost::capy::(anonymous namespace)::ambiguous_range_of_const const&) const :339 3x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::const_buffer [3]>(boost::capy::const_buffer const (&) [3]) const :339 2x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::buffer_array<2ul, false> >(boost::capy::detail::buffer_array<2ul, false> const&) const :339 3x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::buffer_array<2ul, true> >(boost::capy::detail::buffer_array<2ul, true> const&) const :339 3x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::buffer_array<4ul, false> >(boost::capy::detail::buffer_array<4ul, false> const&) const :339 1217x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::buffer_array<4ul, true> >(boost::capy::detail::buffer_array<4ul, true> const&) const :339 1218x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::slice_of<boost::capy::(anonymous namespace)::ambiguous_range_of_const> >(boost::capy::detail::slice_of<boost::capy::(anonymous namespace)::ambiguous_range_of_const> const&) const :339 1x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::slice_of<boost::capy::(anonymous namespace)::converts_to_const_range_of_mutable> >(boost::capy::detail::slice_of<boost::capy::(anonymous namespace)::converts_to_const_range_of_mutable> const&) const :339 1x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::slice_of<boost::capy::const_buffer> >(boost::capy::detail::slice_of<boost::capy::const_buffer> const&) const :339 19x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::slice_of<boost::capy::detail::buffer_array<4ul, false> > >(boost::capy::detail::slice_of<boost::capy::detail::buffer_array<4ul, false> > const&) const :339 7616x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::slice_of<boost::capy::detail::buffer_array<4ul, true> > >(boost::capy::detail::slice_of<boost::capy::detail::buffer_array<4ul, true> > const&) const :339 7616x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::slice_of<boost::capy::mutable_buffer> >(boost::capy::detail::slice_of<boost::capy::mutable_buffer> const&) const :339 168x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::slice_of<std::array<boost::capy::(anonymous namespace)::user_buffer, 2ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::(anonymous namespace)::user_buffer, 2ul> > const&) const :339 1x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 100ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 100ul> > const&) const :339 0 0.0% 0.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 3ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 3ul> > const&) const :339 28x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 5ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 5ul> > const&) const :339 1x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::slice_of<std::array<boost::capy::mutable_buffer, 1ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::mutable_buffer, 1ul> > const&) const :339 5x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::slice_of<std::array<boost::capy::mutable_buffer, 2ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::mutable_buffer, 2ul> > const&) const :339 16x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::slice_of<std::array<boost::capy::mutable_buffer, 3ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::mutable_buffer, 3ul> > const&) const :339 2x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::slice_of<std::span<boost::capy::const_buffer const, 18446744073709551615ul> > >(boost::capy::detail::slice_of<std::span<boost::capy::const_buffer const, 18446744073709551615ul> > const&) const :339 308x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::slice_of<std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> > >(boost::capy::detail::slice_of<std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> > const&) const :339 308x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::mutable_buffer [3]>(boost::capy::mutable_buffer const (&) [3]) const :339 2x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::__cxx11::list<boost::capy::const_buffer, std::allocator<boost::capy::const_buffer> > >(std::__cxx11::list<boost::capy::const_buffer, std::allocator<boost::capy::const_buffer> > const&) const :339 14x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::array<boost::capy::(anonymous namespace)::converts_to_both, 2ul> >(std::array<boost::capy::(anonymous namespace)::converts_to_both, 2ul> const&) const :339 0 0.0% 0.0% auto boost::capy::._anon_117::operator()<std::array<boost::capy::(anonymous namespace)::user_buffer, 2ul> >(std::array<boost::capy::(anonymous namespace)::user_buffer, 2ul> const&) const :339 3x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::array<boost::capy::(anonymous namespace)::user_const, 2ul> >(std::array<boost::capy::(anonymous namespace)::user_const, 2ul> const&) const :339 1x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::array<boost::capy::(anonymous namespace)::user_mutable, 2ul> >(std::array<boost::capy::(anonymous namespace)::user_mutable, 2ul> const&) const :339 1x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::array<boost::capy::const_buffer, 100ul> >(std::array<boost::capy::const_buffer, 100ul> const&) const :339 0 0.0% 0.0% auto boost::capy::._anon_117::operator()<std::array<boost::capy::const_buffer, 1ul> >(std::array<boost::capy::const_buffer, 1ul> const&) const :339 1x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::array<boost::capy::const_buffer, 2ul> >(std::array<boost::capy::const_buffer, 2ul> const&) const :339 2584x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::array<boost::capy::const_buffer, 3ul> >(std::array<boost::capy::const_buffer, 3ul> const&) const :339 21x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::array<boost::capy::const_buffer, 5ul> >(std::array<boost::capy::const_buffer, 5ul> const&) const :339 15x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::array<boost::capy::mutable_buffer, 1ul> >(std::array<boost::capy::mutable_buffer, 1ul> const&) const :339 3x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::array<boost::capy::mutable_buffer, 2ul> >(std::array<boost::capy::mutable_buffer, 2ul> const&) const :339 2579x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::array<boost::capy::mutable_buffer, 3ul> >(std::array<boost::capy::mutable_buffer, 3ul> const&) const :339 3x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::ranges::reverse_view<std::span<boost::capy::const_buffer, 18446744073709551615ul> > >(std::ranges::reverse_view<std::span<boost::capy::const_buffer, 18446744073709551615ul> > const&) const :339 2x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::span<boost::capy::const_buffer const, 18446744073709551615ul> >(std::span<boost::capy::const_buffer const, 18446744073709551615ul> const&) const :339 4448x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::span<boost::capy::const_buffer, 18446744073709551615ul> >(std::span<boost::capy::const_buffer, 18446744073709551615ul> const&) const :339 16x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::span<boost::capy::const_buffer, 3ul> >(std::span<boost::capy::const_buffer, 3ul> const&) const :339 2x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> >(std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> const&) const :339 4425x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::span<boost::capy::mutable_buffer, 18446744073709551615ul> >(std::span<boost::capy::mutable_buffer, 18446744073709551615ul> const&) const :339 14x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::span<boost::capy::mutable_buffer, 3ul> >(std::span<boost::capy::mutable_buffer, 3ul> const&) const :339 2x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::vector<boost::capy::const_buffer, std::allocator<boost::capy::const_buffer> > >(std::vector<boost::capy::const_buffer, std::allocator<boost::capy::const_buffer> > const&) const :339 23x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::vector<boost::capy::mutable_buffer, std::allocator<boost::capy::mutable_buffer> > >(std::vector<boost::capy::mutable_buffer, std::allocator<boost::capy::mutable_buffer> > const&) const :339 26x 100.0% 100.0% auto boost::capy::._anon_130::operator()<boost::capy::detail::slice_of<boost::capy::const_buffer> >(boost::capy::detail::slice_of<boost::capy::const_buffer> const&) const :339 124x 100.0% 100.0% auto boost::capy::._anon_130::operator()<boost::capy::detail::slice_of<boost::capy::mutable_buffer> >(boost::capy::detail::slice_of<boost::capy::mutable_buffer> const&) const :339 10x 100.0% 100.0% auto boost::capy::._anon_130::operator()<boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 2ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 2ul> > const&) const :339 30x 100.0% 100.0% auto boost::capy::._anon_130::operator()<std::array<boost::capy::const_buffer, 1ul> >(std::array<boost::capy::const_buffer, 1ul> const&) const :339 0 0.0% 0.0% auto boost::capy::._anon_130::operator()<std::array<boost::capy::const_buffer, 256ul> >(std::array<boost::capy::const_buffer, 256ul> const&) const :339 0 0.0% 0.0% auto boost::capy::._anon_130::operator()<std::array<boost::capy::const_buffer, 2ul> >(std::array<boost::capy::const_buffer, 2ul> const&) const :339 42x 100.0% 100.0% auto boost::capy::._anon_130::operator()<std::array<boost::capy::mutable_buffer, 2ul> >(std::array<boost::capy::mutable_buffer, 2ul> const&) const :339 6x 100.0% 100.0% auto boost::capy::._anon_130::operator()<std::span<boost::capy::const_buffer const, 18446744073709551615ul> >(std::span<boost::capy::const_buffer const, 18446744073709551615ul> const&) const :339 125x 100.0% 100.0% auto boost::capy::._anon_130::operator()<std::span<boost::capy::const_buffer, 18446744073709551615ul> >(std::span<boost::capy::const_buffer, 18446744073709551615ul> const&) const :339 41x 100.0% 100.0% auto boost::capy::._anon_130::operator()<std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> >(std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> const&) const :339 110x 100.0% 100.0% auto boost::capy::._anon_130::operator()<std::span<boost::capy::mutable_buffer, 18446744073709551615ul> >(std::span<boost::capy::mutable_buffer, 18446744073709551615ul> const&) const :339 38x 100.0% 100.0% auto boost::capy::._anon_130::operator()<std::vector<boost::capy::const_buffer, std::allocator<boost::capy::const_buffer> > >(std::vector<boost::capy::const_buffer, std::allocator<boost::capy::const_buffer> > const&) const :339 6x 100.0% 100.0% auto boost::capy::._anon_130::operator()<std::vector<boost::capy::mutable_buffer, std::allocator<boost::capy::mutable_buffer> > >(std::vector<boost::capy::mutable_buffer, std::allocator<boost::capy::mutable_buffer> > const&) const :339 6x 100.0% 100.0% auto boost::capy::._anon_151::operator()<boost::capy::detail::slice_of<boost::capy::const_buffer> >(boost::capy::detail::slice_of<boost::capy::const_buffer> const&) const :339 98x 100.0% 100.0% auto boost::capy::._anon_151::operator()<boost::capy::detail::slice_of<boost::capy::mutable_buffer> >(boost::capy::detail::slice_of<boost::capy::mutable_buffer> const&) const :339 89x 100.0% 100.0% auto boost::capy::._anon_151::operator()<boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 2ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 2ul> > const&) const :339 60x 100.0% 100.0% auto boost::capy::._anon_151::operator()<boost::capy::detail::slice_of<std::array<boost::capy::mutable_buffer, 2ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::mutable_buffer, 2ul> > const&) const :339 64x 100.0% 100.0% auto boost::capy::._anon_151::operator()<std::array<boost::capy::const_buffer, 2ul> >(std::array<boost::capy::const_buffer, 2ul> const&) const :339 72x 100.0% 100.0% auto boost::capy::._anon_151::operator()<std::array<boost::capy::mutable_buffer, 2ul> >(std::array<boost::capy::mutable_buffer, 2ul> const&) const :339 80x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::buffer_array<4ul, false> >(boost::capy::detail::buffer_array<4ul, false>&) const :352 64x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::buffer_array<4ul, true> >(boost::capy::detail::buffer_array<4ul, true>&) const :352 64x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::slice_of<boost::capy::detail::buffer_array<4ul, false> > >(boost::capy::detail::slice_of<boost::capy::detail::buffer_array<4ul, false> >&) const :352 4352x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::slice_of<boost::capy::detail::buffer_array<4ul, true> > >(boost::capy::detail::slice_of<boost::capy::detail::buffer_array<4ul, true> >&) const :352 4352x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::slice_of<std::span<boost::capy::const_buffer const, 18446744073709551615ul> > >(boost::capy::detail::slice_of<std::span<boost::capy::const_buffer const, 18446744073709551615ul> >&) const :352 176x 100.0% 100.0% auto boost::capy::._anon_117::operator()<boost::capy::detail::slice_of<std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> > >(boost::capy::detail::slice_of<std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> >&) const :352 176x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::array<boost::capy::const_buffer, 1ul> >(std::array<boost::capy::const_buffer, 1ul>&) const :352 1x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::array<boost::capy::const_buffer, 3ul> >(std::array<boost::capy::const_buffer, 3ul>&) const :352 2x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::span<boost::capy::const_buffer const, 18446744073709551615ul> >(std::span<boost::capy::const_buffer const, 18446744073709551615ul>&) const :352 4x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> >(std::span<boost::capy::mutable_buffer const, 18446744073709551615ul>&) const :352 4x 100.0% 100.0% auto boost::capy::._anon_117::operator()<std::vector<boost::capy::const_buffer, std::allocator<boost::capy::const_buffer> > >(std::vector<boost::capy::const_buffer, std::allocator<boost::capy::const_buffer> >&) const :352 1x 100.0% 100.0% boost::capy::(anonymous namespace)::converts_to_both const* boost::capy::._anon_118::operator()<boost::capy::(anonymous namespace)::converts_to_both>(boost::capy::(anonymous namespace)::converts_to_both const&) const :371 0 0.0% 0.0% boost::capy::(anonymous namespace)::converts_to_const_range_of_mutable const* boost::capy::._anon_118::operator()<boost::capy::(anonymous namespace)::converts_to_const_range_of_mutable>(boost::capy::(anonymous namespace)::converts_to_const_range_of_mutable const&) const :371 2x 100.0% 100.0% boost::capy::(anonymous namespace)::user_buffer const* boost::capy::._anon_118::operator()<boost::capy::(anonymous namespace)::user_buffer>(boost::capy::(anonymous namespace)::user_buffer const&) const :371 1x 100.0% 100.0% boost::capy::(anonymous namespace)::user_const const* boost::capy::._anon_118::operator()<boost::capy::(anonymous namespace)::user_const>(boost::capy::(anonymous namespace)::user_const const&) const :371 1x 100.0% 100.0% boost::capy::(anonymous namespace)::user_mutable const* boost::capy::._anon_118::operator()<boost::capy::(anonymous namespace)::user_mutable>(boost::capy::(anonymous namespace)::user_mutable const&) const :371 1x 100.0% 100.0% boost::capy::const_buffer const* boost::capy::._anon_118::operator()<boost::capy::const_buffer>(boost::capy::const_buffer const&) const :371 627x 100.0% 100.0% boost::capy::const_buffer const* boost::capy::._anon_131::operator()<boost::capy::const_buffer>(boost::capy::const_buffer const&) const :371 98x 100.0% 100.0% boost::capy::const_buffer const* boost::capy::._anon_152::operator()<boost::capy::const_buffer>(boost::capy::const_buffer const&) const :371 98x 100.0% 100.0% boost::capy::mutable_buffer const* boost::capy::._anon_118::operator()<boost::capy::mutable_buffer>(boost::capy::mutable_buffer const&) const :371 5738x 50.0% 100.0% boost::capy::mutable_buffer const* boost::capy::._anon_131::operator()<boost::capy::mutable_buffer>(boost::capy::mutable_buffer const&) const :371 113x 100.0% 100.0% boost::capy::mutable_buffer const* boost::capy::._anon_152::operator()<boost::capy::mutable_buffer>(boost::capy::mutable_buffer const&) const :371 183x 90.0% 100.0% auto boost::capy::._anon_118::operator()<(anonymous namespace)::chained_buffers>((anonymous namespace)::chained_buffers const&) const :384 1x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::(anonymous namespace)::ambiguous_range_of_const>(boost::capy::(anonymous namespace)::ambiguous_range_of_const const&) const :384 3x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::const_buffer [3]>(boost::capy::const_buffer const (&) [3]) const :384 2x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::buffer_array<2ul, false> >(boost::capy::detail::buffer_array<2ul, false> const&) const :384 3x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::buffer_array<2ul, true> >(boost::capy::detail::buffer_array<2ul, true> const&) const :384 3x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::buffer_array<4ul, false> >(boost::capy::detail::buffer_array<4ul, false> const&) const :384 1217x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::buffer_array<4ul, true> >(boost::capy::detail::buffer_array<4ul, true> const&) const :384 1218x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::slice_of<boost::capy::(anonymous namespace)::ambiguous_range_of_const> >(boost::capy::detail::slice_of<boost::capy::(anonymous namespace)::ambiguous_range_of_const> const&) const :384 1x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::slice_of<boost::capy::(anonymous namespace)::converts_to_const_range_of_mutable> >(boost::capy::detail::slice_of<boost::capy::(anonymous namespace)::converts_to_const_range_of_mutable> const&) const :384 1x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::slice_of<boost::capy::const_buffer> >(boost::capy::detail::slice_of<boost::capy::const_buffer> const&) const :384 19x 90.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::slice_of<boost::capy::detail::buffer_array<4ul, false> > >(boost::capy::detail::slice_of<boost::capy::detail::buffer_array<4ul, false> > const&) const :384 7616x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::slice_of<boost::capy::detail::buffer_array<4ul, true> > >(boost::capy::detail::slice_of<boost::capy::detail::buffer_array<4ul, true> > const&) const :384 7616x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::slice_of<boost::capy::mutable_buffer> >(boost::capy::detail::slice_of<boost::capy::mutable_buffer> const&) const :384 168x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::slice_of<std::array<boost::capy::(anonymous namespace)::user_buffer, 2ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::(anonymous namespace)::user_buffer, 2ul> > const&) const :384 1x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 100ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 100ul> > const&) const :384 0 0.0% 0.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 3ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 3ul> > const&) const :384 28x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 5ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 5ul> > const&) const :384 1x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::slice_of<std::array<boost::capy::mutable_buffer, 1ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::mutable_buffer, 1ul> > const&) const :384 6x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::slice_of<std::array<boost::capy::mutable_buffer, 2ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::mutable_buffer, 2ul> > const&) const :384 29x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::slice_of<std::array<boost::capy::mutable_buffer, 3ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::mutable_buffer, 3ul> > const&) const :384 3x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::slice_of<std::span<boost::capy::const_buffer const, 18446744073709551615ul> > >(boost::capy::detail::slice_of<std::span<boost::capy::const_buffer const, 18446744073709551615ul> > const&) const :384 308x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::slice_of<std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> > >(boost::capy::detail::slice_of<std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> > const&) const :384 308x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::mutable_buffer [3]>(boost::capy::mutable_buffer const (&) [3]) const :384 2x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::__cxx11::list<boost::capy::const_buffer, std::allocator<boost::capy::const_buffer> > >(std::__cxx11::list<boost::capy::const_buffer, std::allocator<boost::capy::const_buffer> > const&) const :384 26x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::array<boost::capy::(anonymous namespace)::converts_to_both, 2ul> >(std::array<boost::capy::(anonymous namespace)::converts_to_both, 2ul> const&) const :384 0 0.0% 0.0% auto boost::capy::._anon_118::operator()<std::array<boost::capy::(anonymous namespace)::user_buffer, 2ul> >(std::array<boost::capy::(anonymous namespace)::user_buffer, 2ul> const&) const :384 3x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::array<boost::capy::const_buffer, 100ul> >(std::array<boost::capy::const_buffer, 100ul> const&) const :384 0 0.0% 0.0% auto boost::capy::._anon_118::operator()<std::array<boost::capy::const_buffer, 1ul> >(std::array<boost::capy::const_buffer, 1ul> const&) const :384 1x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::array<boost::capy::const_buffer, 2ul> >(std::array<boost::capy::const_buffer, 2ul> const&) const :384 53x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::array<boost::capy::const_buffer, 3ul> >(std::array<boost::capy::const_buffer, 3ul> const&) const :384 21x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::array<boost::capy::const_buffer, 5ul> >(std::array<boost::capy::const_buffer, 5ul> const&) const :384 21x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::array<boost::capy::mutable_buffer, 1ul> >(std::array<boost::capy::mutable_buffer, 1ul> const&) const :384 3x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::array<boost::capy::mutable_buffer, 2ul> >(std::array<boost::capy::mutable_buffer, 2ul> const&) const :384 43x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::array<boost::capy::mutable_buffer, 3ul> >(std::array<boost::capy::mutable_buffer, 3ul> const&) const :384 3x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::ranges::reverse_view<std::span<boost::capy::const_buffer, 18446744073709551615ul> > >(std::ranges::reverse_view<std::span<boost::capy::const_buffer, 18446744073709551615ul> > const&) const :384 2x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::span<boost::capy::const_buffer const, 18446744073709551615ul> >(std::span<boost::capy::const_buffer const, 18446744073709551615ul> const&) const :384 96x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::span<boost::capy::const_buffer, 18446744073709551615ul> >(std::span<boost::capy::const_buffer, 18446744073709551615ul> const&) const :384 16x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::span<boost::capy::const_buffer, 3ul> >(std::span<boost::capy::const_buffer, 3ul> const&) const :384 2x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> >(std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> const&) const :384 73x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::span<boost::capy::mutable_buffer, 18446744073709551615ul> >(std::span<boost::capy::mutable_buffer, 18446744073709551615ul> const&) const :384 14x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::span<boost::capy::mutable_buffer, 3ul> >(std::span<boost::capy::mutable_buffer, 3ul> const&) const :384 2x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::vector<boost::capy::const_buffer, std::allocator<boost::capy::const_buffer> > >(std::vector<boost::capy::const_buffer, std::allocator<boost::capy::const_buffer> > const&) const :384 22x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::vector<boost::capy::mutable_buffer, std::allocator<boost::capy::mutable_buffer> > >(std::vector<boost::capy::mutable_buffer, std::allocator<boost::capy::mutable_buffer> > const&) const :384 26x 100.0% 100.0% auto boost::capy::._anon_131::operator()<boost::capy::detail::slice_of<boost::capy::const_buffer> >(boost::capy::detail::slice_of<boost::capy::const_buffer> const&) const :384 124x 100.0% 100.0% auto boost::capy::._anon_131::operator()<boost::capy::detail::slice_of<boost::capy::mutable_buffer> >(boost::capy::detail::slice_of<boost::capy::mutable_buffer> const&) const :384 10x 100.0% 100.0% auto boost::capy::._anon_131::operator()<boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 2ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 2ul> > const&) const :384 30x 100.0% 100.0% auto boost::capy::._anon_131::operator()<std::array<boost::capy::const_buffer, 1ul> >(std::array<boost::capy::const_buffer, 1ul> const&) const :384 0 0.0% 0.0% auto boost::capy::._anon_131::operator()<std::array<boost::capy::const_buffer, 256ul> >(std::array<boost::capy::const_buffer, 256ul> const&) const :384 0 0.0% 0.0% auto boost::capy::._anon_131::operator()<std::array<boost::capy::const_buffer, 2ul> >(std::array<boost::capy::const_buffer, 2ul> const&) const :384 42x 100.0% 100.0% auto boost::capy::._anon_131::operator()<std::array<boost::capy::mutable_buffer, 2ul> >(std::array<boost::capy::mutable_buffer, 2ul> const&) const :384 6x 100.0% 100.0% auto boost::capy::._anon_131::operator()<std::span<boost::capy::const_buffer const, 18446744073709551615ul> >(std::span<boost::capy::const_buffer const, 18446744073709551615ul> const&) const :384 125x 100.0% 100.0% auto boost::capy::._anon_131::operator()<std::span<boost::capy::const_buffer, 18446744073709551615ul> >(std::span<boost::capy::const_buffer, 18446744073709551615ul> const&) const :384 41x 100.0% 100.0% auto boost::capy::._anon_131::operator()<std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> >(std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> const&) const :384 110x 100.0% 100.0% auto boost::capy::._anon_131::operator()<std::span<boost::capy::mutable_buffer, 18446744073709551615ul> >(std::span<boost::capy::mutable_buffer, 18446744073709551615ul> const&) const :384 38x 100.0% 100.0% auto boost::capy::._anon_131::operator()<std::vector<boost::capy::const_buffer, std::allocator<boost::capy::const_buffer> > >(std::vector<boost::capy::const_buffer, std::allocator<boost::capy::const_buffer> > const&) const :384 6x 100.0% 100.0% auto boost::capy::._anon_131::operator()<std::vector<boost::capy::mutable_buffer, std::allocator<boost::capy::mutable_buffer> > >(std::vector<boost::capy::mutable_buffer, std::allocator<boost::capy::mutable_buffer> > const&) const :384 6x 100.0% 100.0% auto boost::capy::._anon_152::operator()<boost::capy::detail::slice_of<boost::capy::const_buffer> >(boost::capy::detail::slice_of<boost::capy::const_buffer> const&) const :384 98x 100.0% 100.0% auto boost::capy::._anon_152::operator()<boost::capy::detail::slice_of<boost::capy::mutable_buffer> >(boost::capy::detail::slice_of<boost::capy::mutable_buffer> const&) const :384 89x 100.0% 100.0% auto boost::capy::._anon_152::operator()<boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 2ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 2ul> > const&) const :384 60x 100.0% 100.0% auto boost::capy::._anon_152::operator()<boost::capy::detail::slice_of<std::array<boost::capy::mutable_buffer, 2ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::mutable_buffer, 2ul> > const&) const :384 64x 100.0% 100.0% auto boost::capy::._anon_152::operator()<std::array<boost::capy::const_buffer, 2ul> >(std::array<boost::capy::const_buffer, 2ul> const&) const :384 72x 100.0% 100.0% auto boost::capy::._anon_152::operator()<std::array<boost::capy::mutable_buffer, 2ul> >(std::array<boost::capy::mutable_buffer, 2ul> const&) const :384 80x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::buffer_array<4ul, false> >(boost::capy::detail::buffer_array<4ul, false>&) const :397 64x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::buffer_array<4ul, true> >(boost::capy::detail::buffer_array<4ul, true>&) const :397 64x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::slice_of<boost::capy::detail::buffer_array<4ul, false> > >(boost::capy::detail::slice_of<boost::capy::detail::buffer_array<4ul, false> >&) const :397 4352x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::slice_of<boost::capy::detail::buffer_array<4ul, true> > >(boost::capy::detail::slice_of<boost::capy::detail::buffer_array<4ul, true> >&) const :397 4352x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::slice_of<std::span<boost::capy::const_buffer const, 18446744073709551615ul> > >(boost::capy::detail::slice_of<std::span<boost::capy::const_buffer const, 18446744073709551615ul> >&) const :397 176x 100.0% 100.0% auto boost::capy::._anon_118::operator()<boost::capy::detail::slice_of<std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> > >(boost::capy::detail::slice_of<std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> >&) const :397 176x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::array<boost::capy::const_buffer, 1ul> >(std::array<boost::capy::const_buffer, 1ul>&) const :397 1x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::array<boost::capy::const_buffer, 3ul> >(std::array<boost::capy::const_buffer, 3ul>&) const :397 2x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::span<boost::capy::const_buffer const, 18446744073709551615ul> >(std::span<boost::capy::const_buffer const, 18446744073709551615ul>&) const :397 4x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> >(std::span<boost::capy::mutable_buffer const, 18446744073709551615ul>&) const :397 4x 100.0% 100.0% auto boost::capy::._anon_118::operator()<std::vector<boost::capy::const_buffer, std::allocator<boost::capy::const_buffer> > >(std::vector<boost::capy::const_buffer, std::allocator<boost::capy::const_buffer> >&) const :397 1x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<boost::capy::(anonymous namespace)::ambiguous_range_of_const>(boost::capy::(anonymous namespace)::ambiguous_range_of_const const&) const :432 1x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<boost::capy::(anonymous namespace)::converts_to_const_range_of_mutable>(boost::capy::(anonymous namespace)::converts_to_const_range_of_mutable const&) const :432 1x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<boost::capy::(anonymous namespace)::user_buffer>(boost::capy::(anonymous namespace)::user_buffer const&) const :432 1x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<boost::capy::const_buffer [3]>(boost::capy::const_buffer const (&) [3]) const :432 1x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<boost::capy::const_buffer>(boost::capy::const_buffer const&) const :432 303x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<boost::capy::detail::slice_of<boost::capy::(anonymous namespace)::ambiguous_range_of_const> >(boost::capy::detail::slice_of<boost::capy::(anonymous namespace)::ambiguous_range_of_const> const&) const :432 1x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<boost::capy::detail::slice_of<boost::capy::(anonymous namespace)::converts_to_const_range_of_mutable> >(boost::capy::detail::slice_of<boost::capy::(anonymous namespace)::converts_to_const_range_of_mutable> const&) const :432 1x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<boost::capy::detail::slice_of<boost::capy::const_buffer> >(boost::capy::detail::slice_of<boost::capy::const_buffer> const&) const :432 6x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<boost::capy::detail::slice_of<boost::capy::mutable_buffer> >(boost::capy::detail::slice_of<boost::capy::mutable_buffer> const&) const :432 32x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<boost::capy::detail::slice_of<std::array<boost::capy::(anonymous namespace)::user_buffer, 2ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::(anonymous namespace)::user_buffer, 2ul> > const&) const :432 1x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 100ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 100ul> > const&) const :432 0 0.0% 0.0% unsigned long boost::capy::._anon_119::operator()<boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 3ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 3ul> > const&) const :432 14x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<boost::capy::detail::slice_of<std::array<boost::capy::mutable_buffer, 1ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::mutable_buffer, 1ul> > const&) const :432 1x 83.3% 60.0% unsigned long boost::capy::._anon_119::operator()<boost::capy::detail::slice_of<std::array<boost::capy::mutable_buffer, 2ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::mutable_buffer, 2ul> > const&) const :432 4x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<boost::capy::detail::slice_of<std::span<boost::capy::const_buffer const, 18446744073709551615ul> > >(boost::capy::detail::slice_of<std::span<boost::capy::const_buffer const, 18446744073709551615ul> > const&) const :432 88x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<boost::capy::detail::slice_of<std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> > >(boost::capy::detail::slice_of<std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> > const&) const :432 88x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<boost::capy::mutable_buffer [3]>(boost::capy::mutable_buffer const (&) [3]) const :432 1x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<boost::capy::mutable_buffer>(boost::capy::mutable_buffer const&) const :432 874x 42.9% 100.0% unsigned long boost::capy::._anon_119::operator()<std::array<boost::capy::(anonymous namespace)::user_buffer, 2ul> >(std::array<boost::capy::(anonymous namespace)::user_buffer, 2ul> const&) const :432 1x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<std::array<boost::capy::const_buffer, 100ul> >(std::array<boost::capy::const_buffer, 100ul> const&) const :432 0 0.0% 0.0% unsigned long boost::capy::._anon_119::operator()<std::array<boost::capy::const_buffer, 2ul> >(std::array<boost::capy::const_buffer, 2ul> const&) const :432 20x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<std::array<boost::capy::const_buffer, 3ul> >(std::array<boost::capy::const_buffer, 3ul> const&) const :432 4x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<std::array<boost::capy::const_buffer, 5ul> >(std::array<boost::capy::const_buffer, 5ul> const&) const :432 1x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<std::array<boost::capy::mutable_buffer, 2ul> >(std::array<boost::capy::mutable_buffer, 2ul> const&) const :432 1x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<std::array<boost::capy::mutable_buffer, 3ul> >(std::array<boost::capy::mutable_buffer, 3ul> const&) const :432 1x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<std::ranges::reverse_view<std::span<boost::capy::const_buffer, 18446744073709551615ul> > >(std::ranges::reverse_view<std::span<boost::capy::const_buffer, 18446744073709551615ul> > const&) const :432 1x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<std::span<boost::capy::const_buffer const, 18446744073709551615ul> >(std::span<boost::capy::const_buffer const, 18446744073709551615ul> const&) const :432 37x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<std::span<boost::capy::const_buffer, 18446744073709551615ul> >(std::span<boost::capy::const_buffer, 18446744073709551615ul> const&) const :432 3x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<std::span<boost::capy::const_buffer, 3ul> >(std::span<boost::capy::const_buffer, 3ul> const&) const :432 1x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> >(std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> const&) const :432 3x 100.0% 100.0% unsigned long boost::capy::._anon_119::operator()<std::span<boost::capy::mutable_buffer, 3ul> >(std::span<boost::capy::mutable_buffer, 3ul> const&) const :432 1x 100.0% 100.0% unsigned long boost::capy::._anon_132::operator()<boost::capy::const_buffer>(boost::capy::const_buffer const&) const :432 49x 100.0% 100.0% unsigned long boost::capy::._anon_132::operator()<boost::capy::detail::slice_of<boost::capy::const_buffer> >(boost::capy::detail::slice_of<boost::capy::const_buffer> const&) const :432 32x 100.0% 100.0% unsigned long boost::capy::._anon_132::operator()<boost::capy::detail::slice_of<boost::capy::mutable_buffer> >(boost::capy::detail::slice_of<boost::capy::mutable_buffer> const&) const :432 2x 100.0% 100.0% unsigned long boost::capy::._anon_132::operator()<boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 2ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 2ul> > const&) const :432 6x 100.0% 100.0% unsigned long boost::capy::._anon_132::operator()<boost::capy::mutable_buffer>(boost::capy::mutable_buffer const&) const :432 6x 100.0% 100.0% unsigned long boost::capy::._anon_132::operator()<std::array<boost::capy::const_buffer, 1ul> >(std::array<boost::capy::const_buffer, 1ul> const&) const :432 0 0.0% 0.0% unsigned long boost::capy::._anon_132::operator()<std::array<boost::capy::const_buffer, 256ul> >(std::array<boost::capy::const_buffer, 256ul> const&) const :432 0 0.0% 0.0% unsigned long boost::capy::._anon_132::operator()<std::array<boost::capy::const_buffer, 2ul> >(std::array<boost::capy::const_buffer, 2ul> const&) const :432 18x 100.0% 100.0% unsigned long boost::capy::._anon_132::operator()<std::span<boost::capy::const_buffer const, 18446744073709551615ul> >(std::span<boost::capy::const_buffer const, 18446744073709551615ul> const&) const :432 27x 100.0% 100.0% unsigned long boost::capy::._anon_153::operator()<boost::capy::const_buffer>(boost::capy::const_buffer const&) const :432 49x 100.0% 100.0% unsigned long boost::capy::._anon_153::operator()<boost::capy::detail::slice_of<boost::capy::const_buffer> >(boost::capy::detail::slice_of<boost::capy::const_buffer> const&) const :432 26x 100.0% 100.0% unsigned long boost::capy::._anon_153::operator()<boost::capy::detail::slice_of<boost::capy::mutable_buffer> >(boost::capy::detail::slice_of<boost::capy::mutable_buffer> const&) const :432 6x 100.0% 100.0% unsigned long boost::capy::._anon_153::operator()<boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 2ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::const_buffer, 2ul> > const&) const :432 12x 100.0% 100.0% unsigned long boost::capy::._anon_153::operator()<boost::capy::mutable_buffer>(boost::capy::mutable_buffer const&) const :432 54x 100.0% 100.0% unsigned long boost::capy::._anon_153::operator()<std::array<boost::capy::const_buffer, 2ul> >(std::array<boost::capy::const_buffer, 2ul> const&) const :432 36x 100.0% 100.0% unsigned long boost::capy::._anon_153::operator()<std::array<boost::capy::mutable_buffer, 2ul> >(std::array<boost::capy::mutable_buffer, 2ul> const&) const :432 40x 100.0% 100.0% bool boost::capy::._anon_120::operator()<boost::capy::const_buffer>(boost::capy::const_buffer const&) const :464 2x 87.5% 90.0% bool boost::capy::._anon_120::operator()<boost::capy::detail::slice_of<boost::capy::mutable_buffer> >(boost::capy::detail::slice_of<boost::capy::mutable_buffer> const&) const :464 0 27.3% 0.0% bool boost::capy::._anon_120::operator()<boost::capy::detail::slice_of<std::array<boost::capy::mutable_buffer, 1ul> > >(boost::capy::detail::slice_of<std::array<boost::capy::mutable_buffer, 1ul> > const&) const :464 1x 62.5% 53.0% bool boost::capy::._anon_120::operator()<boost::capy::mutable_buffer>(boost::capy::mutable_buffer const&) const :464 170x 87.5% 82.0% bool boost::capy::._anon_133::operator()<std::span<boost::capy::const_buffer const, 18446744073709551615ul> >(std::span<boost::capy::const_buffer const, 18446744073709551615ul> const&) const :464 63x 87.5% 86.0% bool boost::capy::._anon_133::operator()<std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> >(std::span<boost::capy::mutable_buffer const, 18446744073709551615ul> const&) const :464 75x 100.0% 93.0% decltype (static_cast<unsigned long>({parm#2}-{parm#1})) boost::capy::detail::length_impl<__gnu_cxx::__normal_iterator<boost::capy::const_buffer const*, std::vector<boost::capy::const_buffer, std::allocator<boost::capy::const_buffer> > > >(__gnu_cxx::__normal_iterator<boost::capy::const_buffer const*, std::vector<boost::capy::const_buffer, std::allocator<boost::capy::const_buffer> > >, __gnu_cxx::__normal_iterator<boost::capy::const_buffer const*, std::vector<boost::capy::const_buffer, std::allocator<boost::capy::const_buffer> > >, int) :486 1x 100.0% 100.0% decltype (static_cast<unsigned long>({parm#2}-{parm#1})) boost::capy::detail::length_impl<boost::capy::const_buffer const*>(boost::capy::const_buffer const*, boost::capy::const_buffer const*, int) :486 7x 100.0% 100.0%
Line TLA Hits Source Code
1 //
2 // Copyright (c) 2025 Vinnie Falco (vinnie.falco@gmail.com)
3 // Copyright (c) 2026 Michael Vandeberg
4 // Copyright (c) 2026 Steve Gerbino
5 //
6 // Distributed under the Boost Software License, Version 1.0. (See accompanying
7 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 //
9 // Official repository: https://github.com/cppalliance/capy
10 //
11
12 #ifndef BOOST_CAPY_BUFFERS_HPP
13 #define BOOST_CAPY_BUFFERS_HPP
14
15 #include <boost/capy/detail/config.hpp>
16 #include <concepts>
17 #include <cstddef>
18 #include <iterator>
19 #include <memory>
20 #include <ranges>
21 #include <type_traits>
22
23 // https://www.boost.org/doc/libs/1_65_0/doc/html/boost_asio/reference/ConstBufferSequence.html
24
25 namespace boost {
26
27 namespace asio {
28 class const_buffer;
29 class mutable_buffer;
30 } // asio
31
32 namespace capy {
33
34 class const_buffer;
35 class mutable_buffer;
36
37 /** Refer to a contiguous region of writable memory without owning it.
38
39 Represents a pointer and size pair for a modifiable byte range.
40 Does not own, allocate, or copy the memory: copying a buffer copies
41 the pointer and size only. The memory must stay valid until every
42 operation using the buffer completes. Satisfies
43 `MutableBufferSequence` (as a single-element sequence) and is
44 implicitly convertible to `const_buffer`.
45
46 @see @ref const_buffer, @ref MutableBufferSequence
47 */
48 class mutable_buffer
49 {
50 unsigned char* p_ = nullptr;
51 std::size_t n_ = 0;
52
53 public:
54 /// Construct an empty buffer.
55 22x mutable_buffer() = default;
56
57 /** Construct a copy.
58
59 @param other The buffer to copy.
60 */
61 mutable_buffer(
62 mutable_buffer const& other) = default;
63
64 /** Assign by copying.
65
66 @param other The buffer to copy.
67
68 @return A reference to `*this`.
69 */
70 mutable_buffer& operator=(
71 mutable_buffer const& other) = default;
72
73 /** Construct from a pointer and size.
74
75 Takes `void*` so a pointer to any object type binds without a
76 cast, since the buffer represents a raw, untyped writable
77 region.
78
79 @param data A pointer to the first byte of the region.
80
81 @param size The size of the region, in bytes.
82 */
83 35430x constexpr mutable_buffer(
84 void* data, std::size_t size) noexcept
85 35430x : p_(static_cast<unsigned char*>(data))
86 35430x , n_(size)
87 {
88 35430x }
89
90 /** Return a pointer to the memory region.
91
92 Returns `void*`, symmetric with the constructor, so the
93 caller can reinterpret the raw region as whatever type it needs.
94
95 @return A pointer to the first byte of the region.
96 */
97 54281x constexpr void* data() const noexcept
98 {
99 54281x return p_;
100 }
101
102 /** Return the size in bytes.
103
104 @return The size of the region, in bytes.
105 */
106 80862x constexpr std::size_t size() const noexcept
107 {
108 80862x return n_;
109 }
110
111 /** Advance the buffer start, shrinking the region.
112
113 @param n Bytes to skip. Clamped to `size()`.
114
115 @return A reference to `*this`.
116 */
117 mutable_buffer&
118 17764x operator+=(std::size_t n) noexcept
119 {
120 17764x if( n > n_)
121 1x n = n_;
122 17764x p_ += n;
123 17764x n_ -= n;
124 17764x return *this;
125 }
126 };
127
128 /** Refer to a contiguous region of read-only memory without owning it.
129
130 Represents a pointer and size pair for a non-modifiable byte range.
131 Does not own, allocate, or copy the memory: copying a buffer copies
132 the pointer and size only. The memory must stay valid until every
133 operation using the buffer completes. Satisfies
134 `ConstBufferSequence` (as a single-element sequence). Implicitly
135 constructible from `mutable_buffer`.
136
137 @see @ref mutable_buffer, @ref ConstBufferSequence
138 */
139 class const_buffer
140 {
141 unsigned char const* p_ = nullptr;
142 std::size_t n_ = 0;
143
144 public:
145 /// Construct an empty buffer.
146 58x const_buffer() = default;
147
148 /** Construct a copy.
149
150 @param other The buffer to copy.
151 */
152 const_buffer(const_buffer const& other) = default;
153
154 /** Assign by copying.
155
156 @param other The buffer to copy.
157
158 @return A reference to `*this`.
159 */
160 const_buffer& operator=(
161 const_buffer const& other) = default;
162
163 /** Construct from a pointer and size.
164
165 Takes `void const*` so a pointer to any object type binds
166 without a cast, since the buffer represents a raw, untyped
167 read-only region.
168
169 @param data A pointer to the first byte of the region.
170
171 @param size The size of the region, in bytes.
172 */
173 32004x constexpr const_buffer(
174 void const* data, std::size_t size) noexcept
175 32004x : p_(static_cast<unsigned char const*>(data))
176 32004x , n_(size)
177 {
178 32004x }
179
180 /** Construct from mutable_buffer.
181
182 @param b The writable buffer whose region is referenced.
183 */
184 8043x constexpr const_buffer(
185 mutable_buffer const& b) noexcept
186 8043x : p_(static_cast<unsigned char const*>(b.data()))
187 8043x , n_(b.size())
188 {
189 8043x }
190
191 /** Return a pointer to the memory region.
192
193 Returns `void const*`, symmetric with the constructor, so the
194 caller can reinterpret the raw region as whatever type it needs.
195
196 @return A pointer to the first byte of the region.
197 */
198 46590x constexpr void const* data() const noexcept
199 {
200 46590x return p_;
201 }
202
203 /** Return the size in bytes.
204
205 @return The size of the region, in bytes.
206 */
207 78634x constexpr std::size_t size() const noexcept
208 {
209 78634x return n_;
210 }
211
212 /** Advance the buffer start, shrinking the region.
213
214 @param n Bytes to skip. Clamped to `size()`.
215
216 @return A reference to `*this`.
217 */
218 const_buffer&
219 17409x operator+=(std::size_t n) noexcept
220 {
221 17409x if( n > n_)
222 1x n = n_;
223 17409x p_ += n;
224 17409x n_ -= n;
225 17409x return *this;
226 }
227 };
228
229 /** Requires a type to convert to `const_buffer`.
230
231 This is the element requirement of @ref ConstBufferSequence.
232
233 For a `T const` lvalue `x`, both `const_buffer b = x;` and
234 `const_buffer(x)` must be valid, since algorithms convert elements
235 through a const reference and may use either form. A conversion
236 operator must therefore be `const`.
237
238 @note Algorithms that read buffer sequences are `noexcept`, so a
239 conversion that throws terminates the program. Conversion operators
240 should be `noexcept`.
241
242 @see @ref const_buffer, @ref MutableBuffer
243 */
244 template<typename T>
245 concept ConstBuffer =
246 std::convertible_to<T const&, const_buffer>;
247
248 /** Requires a type to convert to both `mutable_buffer` and `const_buffer`.
249
250 This is the element requirement of @ref MutableBufferSequence.
251
252 A type that converts only to `mutable_buffer` does not qualify.
253 Reaching `const_buffer` from it takes two user-defined conversions,
254 and an implicit conversion sequence allows one. Such a type must
255 also provide a conversion to `const_buffer`.
256
257 As with @ref ConstBuffer, the conversion is from a `T const` lvalue,
258 and conversion operators should be `noexcept`.
259
260 @see @ref mutable_buffer, @ref ConstBuffer
261 */
262 template<typename T>
263 concept MutableBuffer =
264 ConstBuffer<T> && std::convertible_to<T const&, mutable_buffer>;
265
266 /** Requires a type to be a @ref ConstBuffer, or a range of them.
267
268 A type satisfies `ConstBufferSequence` if it represents one or more
269 contiguous memory regions that can be read. This includes single
270 buffers and ranges of buffers.
271
272 @par Syntactic Requirements
273 @li @ref ConstBuffer, OR
274 @li A bidirectional range whose value type is a @ref ConstBuffer
275
276 @see @ref const_buffer, @ref MutableBufferSequence
277 */
278 // tag::const_buffer_sequence_concept[]
279 template<typename T>
280 concept ConstBufferSequence =
281 ConstBuffer<T> || (
282 std::ranges::bidirectional_range<T> &&
283 ConstBuffer<std::ranges::range_value_t<T>>);
284 // end::const_buffer_sequence_concept[]
285
286 /** Requires a type to be a @ref MutableBuffer, or a range of them.
287
288 A type satisfies `MutableBufferSequence` if it represents one or more
289 contiguous memory regions that can be written. This includes single
290 buffers and ranges of buffers.
291
292 Every `MutableBufferSequence` is also a @ref ConstBufferSequence.
293
294 A @ref ConstBuffer is a single buffer, even if it is also a range,
295 so only its own conversion to `mutable_buffer` is considered.
296
297 @par Syntactic Requirements
298 @li @ref MutableBuffer, OR
299 @li A bidirectional range, not a @ref ConstBuffer, whose value type
300 is a @ref MutableBuffer
301
302 @see @ref mutable_buffer, @ref ConstBufferSequence
303 */
304 // tag::mutable_buffer_sequence_concept[]
305 template<typename T>
306 concept MutableBufferSequence =
307 ConstBufferSequence<T> && (MutableBuffer<T> || (
308 !ConstBuffer<T> &&
309 std::ranges::bidirectional_range<T> &&
310 MutableBuffer<std::ranges::range_value_t<T>>));
311 // end::mutable_buffer_sequence_concept[]
312
313 /** Return an iterator to the first buffer in a sequence.
314
315 @functionobject
316 */
317 constexpr struct
318 {
319 /** Return a pointer to a single buffer, forming a one-element range.
320
321 @param b A single buffer.
322
323 @return A pointer to `b`.
324 */
325 template<ConstBuffer ConvertibleToBuffer>
326 6859x auto operator()(ConvertibleToBuffer const& b) const noexcept -> ConvertibleToBuffer const*
327 {
328 6859x return std::addressof(b);
329 }
330
331 /** Return an iterator to the first buffer of a sequence.
332
333 @param bs The buffer sequence.
334
335 @return An iterator to the first buffer of `bs`.
336 */
337 template<ConstBufferSequence BS>
338 requires (!ConstBuffer<BS>)
339 33723x auto operator()(BS const& bs) const noexcept
340 {
341 33723x return std::ranges::begin(bs);
342 }
343
344 /** Return an iterator to the first buffer of a sequence.
345
346 @param bs The buffer sequence.
347
348 @return An iterator to the first buffer of `bs`.
349 */
350 template<ConstBufferSequence BS>
351 requires (!ConstBuffer<BS>)
352 9196x auto operator()(BS& bs) const noexcept
353 {
354 9196x return std::ranges::begin(bs);
355 }
356 } buffer_sequence_begin {};
357
358 /** Return an iterator past the last buffer in a sequence.
359
360 @functionobject
361 */
362 constexpr struct
363 {
364 /** Return a pointer one past a single buffer, forming a one-element range.
365
366 @param b A single buffer.
367
368 @return A pointer one past `b`.
369 */
370 template<ConstBuffer ConvertibleToBuffer>
371 6862x auto operator()(ConvertibleToBuffer const& b) const noexcept -> ConvertibleToBuffer const*
372 {
373 6862x return std::addressof(b) + 1;
374 }
375
376 /** Return an iterator past the last buffer of a sequence.
377
378 @param bs The buffer sequence.
379
380 @return An iterator one past the last buffer of `bs`.
381 */
382 template<ConstBufferSequence BS>
383 requires (!ConstBuffer<BS>)
384 33762x auto operator()(BS const& bs) const noexcept
385 {
386 33762x return std::ranges::end(bs);
387 }
388
389 /** Return an iterator past the last buffer of a sequence.
390
391 @param bs The buffer sequence.
392
393 @return An iterator one past the last buffer of `bs`.
394 */
395 template<ConstBufferSequence BS>
396 requires (!ConstBuffer<BS>)
397 9196x auto operator()(BS& bs) const noexcept
398 {
399 9196x return std::ranges::end(bs);
400 }
401 } buffer_sequence_end {};
402
403 /** Return the total byte count across all buffers in a sequence.
404
405 @functionobject
406 */
407 constexpr struct
408 {
409 // GCC 13 falsely flags reads of arr_[i].n_ in detail::buffer_array
410 // when iterating here. The class uses union storage with placement
411 // new for slots 0..n_-1, so reads inside this bounded loop are
412 // well-defined, but the optimizer can't prove the loop bound and
413 // warns. The runtime cost of value-initializing all N slots is
414 // non-trivial for non-trivial value types, so we suppress instead.
415 #if defined(__GNUC__) && !defined(__clang__)
416 #pragma GCC diagnostic push
417 #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
418 #endif
419 /** Return the total byte count across all buffers in a sequence.
420
421 Sums the `size()` of each buffer in the sequence. This differs
422 from @ref buffers_count which counts the number of buffer elements.
423
424 @par Example
425 @par !example example
426
427 @param bs The buffer sequence.
428
429 @return The sum of the sizes of all buffers in `bs`.
430 */
431 template<ConstBufferSequence CB>
432 6360x constexpr std::size_t operator()(
433 CB const& bs) const noexcept
434 {
435 6360x std::size_t n = 0;
436 6360x auto const e = capy::buffer_sequence_end(bs);
437 14719x for(auto it = capy::buffer_sequence_begin(bs); it != e; ++it)
438 8359x n += const_buffer(*it).size();
439 6360x return n;
440 }
441 #if defined(__GNUC__) && !defined(__clang__)
442 #pragma GCC diagnostic pop
443 #endif
444 } buffer_size {};
445
446 /** Check if a buffer sequence contains no data.
447
448 @functionobject
449 */
450 constexpr struct
451 {
452 // See note on buffer_size above — same union-storage false positive.
453 #if defined(__GNUC__) && !defined(__clang__)
454 #pragma GCC diagnostic push
455 #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
456 #endif
457 /** Check if a buffer sequence contains no data.
458
459 @param bs The buffer sequence.
460
461 @return `true` if every buffer is empty or the sequence has none.
462 */
463 template<ConstBufferSequence CB>
464 1635x constexpr bool operator()(
465 CB const& bs) const noexcept
466 {
467 1635x auto it = buffer_sequence_begin(bs);
468 1635x auto const end_ = buffer_sequence_end(bs);
469 1683x while(it != end_)
470 {
471 1647x const_buffer b(*it++);
472 1647x if(b.size() != 0)
473 1599x return false;
474 }
475 36x return true;
476 }
477 #if defined(__GNUC__) && !defined(__clang__)
478 #pragma GCC diagnostic pop
479 #endif
480 } buffers_empty {};
481
482 namespace detail {
483
484 template<class It>
485 auto
486 8x length_impl(It first, It last, int)
487 -> decltype(static_cast<std::size_t>(last - first))
488 {
489 8x return static_cast<std::size_t>(last - first);
490 }
491
492 template<class It>
493 std::size_t
494 length_impl(It first, It last, long)
495 {
496 std::size_t n = 0;
497 while(first != last)
498 {
499 ++first;
500 ++n;
501 }
502 return n;
503 }
504
505 } // detail
506
507 /** Return the number of buffer elements in a sequence.
508
509 Counts the number of individual buffer objects, not bytes.
510 For a single buffer, returns 1. For a range, returns the
511 distance from `buffer_sequence_begin` to `buffer_sequence_end`.
512
513 @par Exception Safety
514 Throws only what the sequence's iterator operations throw.
515
516 @param bs The buffer sequence.
517
518 @return The number of buffers in `bs`.
519
520 @see @ref buffer_size
521 */
522 template<ConstBufferSequence CB>
523 std::size_t
524 8x buffers_count(CB const& bs)
525 {
526 8x return detail::length_impl(
527 8x buffer_sequence_begin(bs), buffer_sequence_end(bs), 0);
528 }
529
530 /// Names `mutable_buffer` for a mutable sequence, `const_buffer` otherwise.
531 template<typename BS>
532 using buffer_type = std::conditional_t<
533 MutableBufferSequence<BS>,
534 mutable_buffer, const_buffer>;
535
536 } // capy
537 } // boost
538
539 #endif
540