We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 599c615 commit b0618f2Copy full SHA for b0618f2
firebase-firestore/src/main/java/com/google/firebase/firestore/util/ByteBufferInputStream.java
@@ -31,6 +31,9 @@ public int read() {
31
if (!buffer.hasRemaining()) {
32
return -1;
33
}
34
+ // `& 0xFF` converts the signed byte value to an integer and then strips the first 3 bytes.
35
+ // This keeps the last eight bits of the value and thereby translates the original byte value to
36
+ // the [0, 255] range.
37
return buffer.get() & 0xFF;
38
39
0 commit comments