()
| 144 | } |
| 145 | |
| 146 | ByteBuffer pull() { |
| 147 | if (context[0] == 0) { |
| 148 | throw new IllegalStateException("brotli encoder is already destroyed"); |
| 149 | } |
| 150 | if (!isSuccess() || !hasMoreOutput()) { |
| 151 | throw new IllegalStateException("pulling while data is not ready"); |
| 152 | } |
| 153 | fresh = false; |
| 154 | return nativePull(context); |
| 155 | } |
| 156 | |
| 157 | /** |
| 158 | * Releases native resources. |
no test coverage detected