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

Method prepare

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

Source from the content-addressed store, hash-verified

189 }
190
191 private static int prepare(State s) {
192 if (s.halfOffset > BitReader.HALF_WATERLINE) {
193 final int result = readMoreInput(s);
194 if (result != BROTLI_OK) {
195 return result;
196 }
197 }
198 int health = checkHealth(s, 0);
199 if (health != BROTLI_OK) {
200 return health;
201 }
202 doFillBitWindow(s);
203 doFillBitWindow(s);
204 return BROTLI_OK;
205 }
206
207 static int reload(State s) {
208 if (s.bitOffset == BITNESS) {

Callers 2

initBitReaderMethod · 0.95
reloadMethod · 0.95

Calls 3

readMoreInputMethod · 0.95
checkHealthMethod · 0.95
doFillBitWindowMethod · 0.95

Tested by

no test coverage detected