Skip to content

Migrate to capy post-#262 buffer API#250

Merged
mvandeberg merged 1 commit into
cppalliance:developfrom
mvandeberg:pr/capy-262-buffer-pair-migration
May 15, 2026
Merged

Migrate to capy post-#262 buffer API#250
mvandeberg merged 1 commit into
cppalliance:developfrom
mvandeberg:pr/capy-262-buffer-pair-migration

Conversation

@mvandeberg
Copy link
Copy Markdown
Contributor

cppalliance/capy#262 removes the const_buffer_pair / mutable_buffer_pair aliases and demotes buffer_array<N, IsConst> from capy:: to capy::detail::. corosio migrates:

  • test/unit/buffer_param.cpp: replace capy::const_buffer_pair / capy::mutable_buffer_pair with std::array<capy::const_buffer, 2> / std::array<capy::mutable_buffer, 2>. Drop the buffers/buffer_pair.hpp include.

  • tls_stream.hpp / wolfssl_stream.{hpp,cpp} / openssl_stream.{hpp,cpp}: replace capy::mutable_buffer_array<N> / capy::const_buffer_array<N> with capy::detail::mutable_buffer_array<N> / capy::detail::const_buffer_array<N> and update include paths to boost/capy/detail/buffer_array.hpp. corosio's TLS stream interface acknowledges that this scatter/gather fixed-capacity helper is now capy-internal; using detail:: from corosio is the explicit choice made when buffer_array became internal machinery.

Coordinated with capy PR cppalliance/capy#262.

cppalliance/capy#262 removes the `const_buffer_pair` /
`mutable_buffer_pair` aliases and demotes `buffer_array<N, IsConst>`
from `capy::` to `capy::detail::`. corosio migrates:

- `test/unit/buffer_param.cpp`: replace `capy::const_buffer_pair` /
  `capy::mutable_buffer_pair` with `std::array<capy::const_buffer, 2>`
  / `std::array<capy::mutable_buffer, 2>`. Drop the
  `buffers/buffer_pair.hpp` include.

- tls_stream.hpp / wolfssl_stream.{hpp,cpp} / openssl_stream.{hpp,cpp}:
  replace `capy::mutable_buffer_array<N>` / `capy::const_buffer_array<N>`
  with `capy::detail::mutable_buffer_array<N>` /
  `capy::detail::const_buffer_array<N>` and update include paths to
  `boost/capy/detail/buffer_array.hpp`. corosio's TLS stream interface
  acknowledges that this scatter/gather fixed-capacity helper is now
  capy-internal; using `detail::` from corosio is the explicit choice
  made when buffer_array became internal machinery.

Coordinated with capy PR cppalliance/capy#262.
@cppalliance-bot
Copy link
Copy Markdown

An automated preview of the documentation is available at https://250.corosio.prtest3.cppalliance.org/index.html

If more commits are pushed to the pull request, the docs will rebuild at the same URL.

2026-05-15 21:03:17 UTC

@codecov
Copy link
Copy Markdown

codecov Bot commented May 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.70%. Comparing base (0e568b9) to head (a2840ba).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #250      +/-   ##
===========================================
- Coverage    77.71%   77.70%   -0.02%     
===========================================
  Files           96       96              
  Lines         7296     7292       -4     
  Branches      1787     1787              
===========================================
- Hits          5670     5666       -4     
  Misses        1108     1108              
  Partials       518      518              
Files with missing lines Coverage Δ
include/boost/corosio/openssl_stream.hpp 55.55% <ø> (ø)
include/boost/corosio/tls_stream.hpp 75.00% <ø> (ø)
include/boost/corosio/wolfssl_stream.hpp 55.55% <ø> (ø)
src/openssl/src/openssl_stream.cpp 56.11% <ø> (-0.20%) ⬇️
src/wolfssl/src/wolfssl_stream.cpp 62.06% <ø> (-0.14%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0e568b9...a2840ba. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mvandeberg mvandeberg merged commit d8ee07b into cppalliance:develop May 15, 2026
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants