-
Notifications
You must be signed in to change notification settings - Fork 275
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
Modify ByteBufferReadableStreamChannel to take in a list of ByteBuffer #394
Comments
Hey @vgkholla i'm a total |
@alecharmon Sure, go ahead ! If you want guidelines on what we expect on a PR, please take a look at the older ones. Usually we expect unit tests that cover all the lines (and if-else cases) of the new code and a confirmation of successful build (./gradlew build && ./gradlew test). Let me know if you need any other assistance. |
++ |
@alecharmon If you are working on this, would make sense to wait until #460 is merged and #391 is closed. Will make the job easier. |
ahh ok tx @vgkholla |
@alecharmon PR has been merged and the issue closed |
If the issue is still open, I would like to work on this. I also wanted to get more details -
Is the intention to just create a single buffer whose capacity equals the sum of the length of all buffers in the passed list? |
@moontails the class surely should not create copies of any buffers it receives. The use case for the new constructor is that you might want to expose a The class internally would do something like:
A very similar piece of code is available in Also, like in As for reusing code, the first constructor would do something like
Let me know if you have any more questions. |
@vgkholla I misinterpreted the quoted statement. Thank you for providing more explanation, it gives me a better picture. I will take a crack at this. |
@vgkholla would it be alright to track |
The current constructor of
ByteBufferReadableStreamChannel
takes in a singleByteBuffer
.This functionality can be expanded by adding another constructor that takes in a
List
ofByteBuffer
.(The first constructor would call into the second constructor to avoid duplicate code).
This would help support more use cases.
The text was updated successfully, but these errors were encountered: