Skip to content

feat(io): impl Reader for BufReader + add ReadAdapter#54

Merged
cpubot merged 1 commit intomasterfrom
buf-reader-no-grow
Mar 26, 2026
Merged

feat(io): impl Reader for BufReader + add ReadAdapter#54
cpubot merged 1 commit intomasterfrom
buf-reader-no-grow

Conversation

@cpubot
Copy link
Copy Markdown
Contributor

@cpubot cpubot commented Dec 12, 2025

This PR adds a Reader implementation, ReadAdapter, over any std::io::Read and implements Reader for std::io::BufReader.

I am favoring the simple implementation over something more sophisticated like #196 unless we can prove there is a performance benefit to it.

Closes #50

@cpubot cpubot force-pushed the buf-reader-no-grow branch 4 times, most recently from 38d14f7 to 80aed37 Compare February 16, 2026 22:44
@cpubot cpubot changed the title RFC: Impl BufReader for std::io::Read (no grow) Impl BufReader for std::io::Read (no grow) Feb 16, 2026
@cpubot cpubot changed the title Impl BufReader for std::io::Read (no grow) feat: Impl BufReader for std::io::Read (no grow) Feb 16, 2026
@cpubot cpubot changed the title feat: Impl BufReader for std::io::Read (no grow) feat: Impl BufReader for std::io::Read Feb 16, 2026
@cpubot cpubot marked this pull request as ready for review February 16, 2026 23:00
@cpubot cpubot force-pushed the buf-reader-no-grow branch from 80aed37 to 56e1268 Compare February 17, 2026 17:52
@cpubot cpubot requested a review from kskalski February 17, 2026 17:52
@cpubot cpubot closed this Mar 24, 2026
@cpubot cpubot deleted the buf-reader-no-grow branch March 24, 2026 16:58
@cpubot cpubot restored the buf-reader-no-grow branch March 26, 2026 15:41
@cpubot cpubot reopened this Mar 26, 2026
@cpubot cpubot force-pushed the buf-reader-no-grow branch from 56e1268 to 20d572e Compare March 26, 2026 16:14
@cpubot cpubot changed the title feat: Impl BufReader for std::io::Read feat(io): impl Reader for BufReader + add ReadAdapter Mar 26, 2026
@cpubot cpubot force-pushed the buf-reader-no-grow branch 2 times, most recently from 31b798c to c43ecc4 Compare March 26, 2026 16:15
@cpubot cpubot force-pushed the buf-reader-no-grow branch from c43ecc4 to ca19e16 Compare March 26, 2026 16:18
@cpubot cpubot requested review from kskalski and removed request for kskalski March 26, 2026 16:29
Copy link
Copy Markdown
Contributor

@kskalski kskalski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, simplest wins :)

@cpubot cpubot merged commit 84d7ab9 into master Mar 26, 2026
4 checks passed
@cpubot cpubot deleted the buf-reader-no-grow branch March 26, 2026 22:46
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.

Deserializing from BufReader?

2 participants