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

Method jumpToByteBoundary

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

Source from the content-addressed store, hash-verified

212 }
213
214 static int jumpToByteBoundary(State s) {
215 final int padding = (BITNESS - s.bitOffset) & 7;
216 if (padding != 0) {
217 final int paddingBits = readFewBits(s, padding);
218 if (paddingBits != 0) {
219 return Utils.makeError(s, BROTLI_ERROR_CORRUPTED_PADDING_BITS);
220 }
221 }
222 return BROTLI_OK;
223 }
224
225 static int halfAvailable(State s) {
226 int limit = HALVES_CAPACITY;

Callers 2

decompressMethod · 0.95

Calls 2

readFewBitsMethod · 0.95
makeErrorMethod · 0.95

Tested by

no test coverage detected