Skip to content

refactor!: remove DynamicBuffer concept and read_until#343

Merged
sgerbino merged 1 commit into
cppalliance:develop-2from
sgerbino:pr/remove-dynamic-buffer
Jun 30, 2026
Merged

refactor!: remove DynamicBuffer concept and read_until#343
sgerbino merged 1 commit into
cppalliance:develop-2from
sgerbino:pr/remove-dynamic-buffer

Conversation

@sgerbino

Copy link
Copy Markdown
Collaborator

Remove the DynamicBuffer subsystem and the read_until algorithm as a self-contained unit. Nothing in the surviving library consumed these beyond the dynamic read overloads and read_until themselves.

Removed:

  • DynamicBuffer / DynamicBufferParam concepts
  • read_until and the MatchCondition concept it required (no other consumer)
  • flat_/circular_/vector_/string_dynamic_buffer types and their factory
  • the two dynamic read overloads (read-until-eof into a growable buffer)

The counted read(stream, MutableBufferSequence) overload is unchanged: it fills a fixed buffer sequence and remains fully covered by tests.

BREAKING CHANGE: dynamic buffers, read_until, and the growable-buffer read overloads are no longer part of the public API.

@cppalliance-bot

cppalliance-bot commented Jun 30, 2026

Copy link
Copy Markdown

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

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

2026-06-30 17:27:57 UTC

@sgerbino sgerbino force-pushed the pr/remove-dynamic-buffer branch from 05a9492 to d411c45 Compare June 30, 2026 16:18
@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop-2@a226b79). Learn more about missing BASE report.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             develop-2     #343   +/-   ##
============================================
  Coverage             ?   98.29%           
============================================
  Files                ?       77           
  Lines                ?     3984           
  Branches             ?        0           
============================================
  Hits                 ?     3916           
  Misses               ?       68           
  Partials             ?        0           
Flag Coverage Δ
linux 98.29% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Harness.

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

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

@akrzemi1

Copy link
Copy Markdown
Contributor

With this removal, value not_found in enums cond and error become unused. You should probably remove them as well.

@sgerbino

Copy link
Copy Markdown
Collaborator Author

With this removal, value not_found in enums cond and error become unused. You should probably remove them as well.

Very good catch, you're right. I'm removing them as well.

Remove the DynamicBuffer subsystem and the read_until algorithm as a
self-contained unit. Nothing in the surviving library consumed these
beyond the dynamic read overloads and read_until themselves.

Removed:
- DynamicBuffer / DynamicBufferParam concepts
- read_until and the MatchCondition concept it required (no other consumer)
- flat_/circular_/vector_/string_dynamic_buffer types and their factory
- the two dynamic read overloads (read-until-eof into a growable buffer)

The counted read(stream, MutableBufferSequence) overload is unchanged:
it fills a fixed buffer sequence and remains fully covered by tests.

BREAKING CHANGE: dynamic buffers, read_until, and the growable-buffer
read overloads are no longer part of the public API.
@sgerbino sgerbino force-pushed the pr/remove-dynamic-buffer branch from d411c45 to a4c48f7 Compare June 30, 2026 17:25
@sgerbino sgerbino merged commit 8304cbe into cppalliance:develop-2 Jun 30, 2026
38 checks passed
@sgerbino sgerbino deleted the pr/remove-dynamic-buffer branch June 30, 2026 18:03
@github-project-automation github-project-automation Bot moved this from Backlog to Done in Beast2 Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants