src/JavaZipSupport.st
branchjk_new_structure
changeset 963 7181c835cc9d
parent 952 7afd3529b9fa
child 1152 040cba55a7d2
equal deleted inserted replaced
962:7e8426c32bd4 963:7181c835cc9d
   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);