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

Method calculateFence

java/org/brotli/dec/Decode.java:1109–1115  ·  view source on GitHub ↗
(State s)

Source from the content-addressed store, hash-verified

1107
1108 // Returns offset in ringBuffer that should trigger WRITE when filled.
1109 private static int calculateFence(State s) {
1110 int result = s.ringBufferSize;
1111 if (s.isEager != 0) {
1112 result = Utils.min(result, s.ringBufferBytesWritten + s.outputLength - s.outputUsed);
1113 }
1114 return result;
1115 }
1116
1117 private static int doUseDictionary(State s, int fence) {
1118 if (s.distance > MAX_ALLOWED_DISTANCE) {

Callers 1

decompressMethod · 0.95

Calls 1

minMethod · 0.95

Tested by

no test coverage detected