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

Method halfAvailable

java/org/brotli/dec/BitReader.java:225–231  ·  view source on GitHub ↗
(State s)

Source from the content-addressed store, hash-verified

223 }
224
225 static int halfAvailable(State s) {
226 int limit = HALVES_CAPACITY;
227 if (s.endOfStreamReached != 0) {
228 limit = (s.tailBytes + (HALF_SIZE - 1)) >> LOG_HALF_SIZE;
229 }
230 return limit - s.halfOffset;
231 }
232
233 static int copyRawBytes(State s, byte[] data, int offset, int length) {
234 int pos = offset;

Callers 2

readMoreInputMethod · 0.95
copyRawBytesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected