-
Notifications
You must be signed in to change notification settings - Fork 164
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
ReadableByteStream: pull + pullInto or just pullInto #363
Comments
At some point the plan was that if you do getReader().read(), it will pre-allocate a buffer for you of a given size, then pass that to pullInto. The size could be determined by an option to the constructor (maybe part of the strategy? or maybe part of the underlying byte source object). That plan is definitely less powerful than having both pull and pullInto. But maybe it gives a significant enough simplification to be worth it? I am not sure. |
Oh, right. I remembered that. But, that said, this problem is connected with #329. If the ReadableByteStream is designed to automatically allocate a buffer for |
Current ReadableByteStream being redesigned at #418 has both pull and pullInto. When read(view) is called, via pullInto, the stream passes the TypedArray received from the consumer to the underlying source. For read(), |
Branched from #295 (comment)
Write the reason if we choose to have both.
The text was updated successfully, but these errors were encountered: