-
Notifications
You must be signed in to change notification settings - Fork 183
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
Add mark/reset functionality to BufferInputStream
#2447
Add mark/reset functionality to BufferInputStream
#2447
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution @bobbyowolabi!
servicetalk-buffer-api/src/main/java/io/servicetalk/buffer/api/BufferInputStream.java
Outdated
Show resolved
Hide resolved
servicetalk-buffer-api/src/main/java/io/servicetalk/buffer/api/BufferInputStream.java
Outdated
Show resolved
Hide resolved
servicetalk-buffer-api/src/main/java/io/servicetalk/buffer/api/BufferInputStream.java
Outdated
Show resolved
Hide resolved
servicetalk-buffer-api/src/main/java/io/servicetalk/buffer/api/BufferInputStream.java
Outdated
Show resolved
Hide resolved
servicetalk-buffer-api/src/test/java/io/servicetalk/buffer/api/BufferInputStreamTest.java
Outdated
Show resolved
Hide resolved
servicetalk-buffer-api/src/test/java/io/servicetalk/buffer/api/BufferInputStreamTest.java
Outdated
Show resolved
Hide resolved
128bdf4
to
c2f1727
Compare
Thank you for your time to review and all the feedback. I made updates for all the suggestions. |
Motivation: BufferInputStream can support the mark/reset functionality with not too much additional logic like ByteArrayInputStream and ByteBufInputStream (from netty). Modifications: - Implemented the mark, reset and markSupported methods of BufferInputStream - Added test cases Result: Addresses apple#1562
c2f1727
to
d4454a3
Compare
BufferInputStream
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks sparkling clean now. Thanks for the contribution, @bobbyowolabi!
Motivation:
BufferInputStream can support the mark/reset functionality, as noted in #1562, like ByteArrayInputStream and ByteBufInputStream (from netty).
Modifications:
Result:
Resolves #1562.