Skip to content

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

Merged
merged 2 commits into from
Jan 20, 2021

Conversation

schmidt-sebastian
Copy link
Contributor

This will allow all three overloads for loadBundle() to use the same decoding logic.

See #2322 for how this all comes together.

This will allow all three overloads for loadBundle() to use the same decoding logic.

See #2322 for how this all comes together.
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 15, 2021

Coverage Report

Affected SDKs

  • firebase-firestore

    SDK overall coverage changed from 47.16% (998b18a) to 47.19% (4a902f9d) by +0.03%.

    Filename Base (998b18a) Head (4a902f9d) Diff
    ByteBufferInputStream.java ? 90.91% ?

Test Logs

Notes

HTML coverage reports can be produced locally with ./gradlew <product>:checkCoverage.
Report files are located at <product-build-dir>/reports/jacoco/.

Head commit (4a902f9d) is created by Prow via merging commits: 998b18a 02799ca.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 15, 2021

Binary Size Report

Affected SDKs

  • firebase-firestore

    Type Base (998b18a) Head (4a902f9d) Diff
    aar 1.04 MB 1.04 MB +697 B (+0.1%)
    apk (release) 3.16 MB 3.16 MB +212 B (+0.0%)

Test Logs

Notes

Head commit (4a902f9d) is created by Prow via merging commits: 998b18a 02799ca.

Copy link
Contributor

@wu-hui wu-hui left a 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;
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@schmidt-sebastian schmidt-sebastian merged commit a030f2b into master Jan 20, 2021
andreaowu pushed a commit that referenced this pull request Jan 29, 2021
@firebase firebase locked and limited conversation to collaborators Feb 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants