(State s)
| 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) { |