-
Notifications
You must be signed in to change notification settings - Fork 626
Add ByteBufferInputStream #2329
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 ByteBufferInputStream #2329
Conversation
This will allow all three overloads for loadBundle() to use the same decoding logic. See #2322 for how this all comes together.
Coverage ReportAffected SDKs
Test Logs
NotesHTML coverage reports can be produced locally with Head commit (4a902f9d) is created by Prow via merging commits: 998b18a 02799ca. |
Binary Size ReportAffected SDKs
Test Logs
NotesHead commit (4a902f9d) is created by Prow via merging commits: 998b18a 02799ca. |
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.
LGTM.
if (!buffer.hasRemaining()) { | ||
return -1; | ||
} | ||
return buffer.get() & 0xFF; |
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.
Add a comment here to explain why & 0xFF
?
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.
Done
This will allow all three overloads for loadBundle() to use the same decoding logic.
See #2322 for how this all comes together.