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

Method close

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

Source from the content-addressed store, hash-verified

339 }
340
341 static int close(State s) {
342 if (s.runningState == UNINITIALIZED) {
343 return Utils.makeError(s, BROTLI_PANIC_STATE_NOT_INITIALIZED);
344 }
345 if (s.runningState > 0) {
346 s.runningState = CLOSED;
347 }
348 return BROTLI_OK;
349 }
350
351 /**
352 * Decodes a number in the range [0..255], by reading 1 - 11 bits.

Callers 1

closeMethod · 0.95

Calls 1

makeErrorMethod · 0.95

Tested by

no test coverage detected