equal
deleted
inserted
replaced
240 |
240 |
241 finished := needDict := 0. |
241 finished := needDict := 0. |
242 |
242 |
243 %{ |
243 %{ |
244 #define strm (__zStreamVal(__INST(z_stream))) |
244 #define strm (__zStreamVal(__INST(z_stream))) |
|
245 int code, consumed; |
|
246 |
245 strm->next_in = (Bytef *) (__ByteArrayInstPtr(in_buf)->ba_element + __intVal(in_off)); |
247 strm->next_in = (Bytef *) (__ByteArrayInstPtr(in_buf)->ba_element + __intVal(in_off)); |
246 strm->next_out = (Bytef *) (__ByteArrayInstPtr(out_buf)->ba_element + __intVal(out_off)); |
248 strm->next_out = (Bytef *) (__ByteArrayInstPtr(out_buf)->ba_element + __intVal(out_off)); |
247 strm->avail_in = __intVal(in_len); |
249 strm->avail_in = __intVal(in_len); |
248 strm->avail_out = __intVal(out_len); |
250 strm->avail_out = __intVal(out_len); |
249 |
251 |
250 int code, consumed; |
252 |
251 code = inflate(strm, Z_PARTIAL_FLUSH); |
253 code = inflate(strm, Z_PARTIAL_FLUSH); |
252 |
254 |
253 switch (code) { |
255 switch (code) { |
254 case Z_STREAM_END: |
256 case Z_STREAM_END: |
255 finished = __MKSMALLINT(1); |
257 finished = __MKSMALLINT(1); |