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

Method push

java/org/brotli/wrapper/dec/DecoderJNI.java:57–73  ·  view source on GitHub ↗
(int length)

Source from the content-addressed store, hash-verified

55 }
56
57 public void push(int length) {
58 if (length < 0) {
59 throw new IllegalArgumentException("negative block length");
60 }
61 if (context[0] == 0) {
62 throw new IllegalStateException("brotli decoder is already destroyed");
63 }
64 if (lastStatus != Status.NEEDS_MORE_INPUT && lastStatus != Status.OK) {
65 throw new IllegalStateException("pushing input to decoder in " + lastStatus + " state");
66 }
67 if (lastStatus == Status.OK && length != 0) {
68 throw new IllegalStateException("pushing input to decoder in OK state");
69 }
70 fresh = false;
71 nativePush(context, length);
72 parseStatus();
73 }
74
75 private void parseStatus() {
76 long status = context[1];

Callers 7

decompressMethod · 0.95
bytesToStringFunction · 0.45
brotliDecodeFunction · 0.45
bytesToStringFunction · 0.45
decodeFunction · 0.45
decode.min.jsFile · 0.45
decodeMethod · 0.45

Calls 2

parseStatusMethod · 0.95
nativePushMethod · 0.45

Tested by

no test coverage detected