(int length)
| 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]; |
no test coverage detected