MCPcopy
hub / github.com/google/brotli / read

Method read

java/org/brotli/dec/BrotliInputStream.java:120–131  ·  view source on GitHub ↗

{@inheritDoc}

()

Source from the content-addressed store, hash-verified

118 * {@inheritDoc}
119 */
120 @Override
121 public int read() throws IOException {
122 if (bufferOffset >= remainingBufferBytes) {
123 remainingBufferBytes = read(buffer, 0, buffer.length);
124 bufferOffset = 0;
125 if (remainingBufferBytes == END_OF_STREAM_MARKER) {
126 // Both Java and C# return the same value for EOF on single-byte read.
127 return -1;
128 }
129 }
130 return buffer[bufferOffset++] & 0xFF;
131 }
132
133 /**
134 * {@inheritDoc}

Callers 13

decodeBytesMethod · 0.95
testSetDictionaryMethod · 0.95
testNoDictionaryMethod · 0.95
decodeBytesMethod · 0.95
testEagerStreamMethod · 0.95
readStreamMethod · 0.45
fingerprintStreamMethod · 0.45
readFileMethod · 0.45
decompressMethod · 0.45
readInputMethod · 0.45

Calls 2

decompressMethod · 0.95
minMethod · 0.80

Tested by 7

testSetDictionaryMethod · 0.76
testNoDictionaryMethod · 0.76
testEagerStreamMethod · 0.76
decompressMethod · 0.36
decompressMethod · 0.36