()
| 100 | } |
| 101 | |
| 102 | public ByteBuffer pull() { |
| 103 | if (context[0] == 0) { |
| 104 | throw new IllegalStateException("brotli decoder is already destroyed"); |
| 105 | } |
| 106 | if (lastStatus != Status.NEEDS_MORE_OUTPUT && !hasOutput()) { |
| 107 | throw new IllegalStateException("pulling output from decoder in " + lastStatus + " state"); |
| 108 | } |
| 109 | fresh = false; |
| 110 | ByteBuffer result = nativePull(context); |
| 111 | parseStatus(); |
| 112 | return result; |
| 113 | } |
| 114 | |
| 115 | /** |
| 116 | * Releases native resources. |
no test coverage detected