Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved support for readAtLeast byob reads #126

Merged
merged 1 commit into from
Oct 27, 2022

Conversation

jasnell
Copy link
Member

@jasnell jasnell commented Oct 25, 2022

  • Allows multiple respond/respondWithNewView to partially resolve readAtLeast byob reads.
  • Fix IdentityTransformStream minBytes calculation
  • Properly calculate atLeast with multi-byte views

/cc @harrishancock

@jasnell jasnell force-pushed the jsnell/stream-respond-minimum branch 2 times, most recently from 483370a to 562ee01 Compare October 25, 2022 14:41
@jasnell jasnell requested a review from vlovich October 25, 2022 14:43
@jasnell jasnell marked this pull request as ready for review October 25, 2022 14:43
@jasnell jasnell force-pushed the jsnell/stream-respond-minimum branch from 562ee01 to 1f9d2ba Compare October 27, 2022 15:14
src/workerd/api/streams/queue.c++ Show resolved Hide resolved
src/workerd/api/streams/standard.c++ Outdated Show resolved Hide resolved
@jasnell jasnell force-pushed the jsnell/stream-respond-minimum branch 2 times, most recently from dba697a to 2a1a311 Compare October 27, 2022 19:20
* Allows multiple respond/respondWithNewView to partially resolve
  readAtLeast byob reads.
* Fix IdentityTransformStream minBytes calculation
* Properly calculate atLeast with multi-byte views
@jasnell jasnell force-pushed the jsnell/stream-respond-minimum branch from d4617e1 to ee79d58 Compare October 27, 2022 21:07
@jasnell jasnell merged commit 84ca901 into main Oct 27, 2022
@jasnell jasnell deleted the jsnell/stream-respond-minimum branch October 27, 2022 23:33
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