Lines Matching refs:ldi
191 linkedlist_datablock_internal* ldi; in allocate_new_datablock() local
192 ldi = (linkedlist_datablock_internal*) in allocate_new_datablock()
194 if (ldi!=NULL) in allocate_new_datablock()
196 ldi->next_datablock = NULL ; in allocate_new_datablock()
197 ldi->filled_in_this_block = 0 ; in allocate_new_datablock()
198 ldi->avail_in_this_block = SIZEDATA_INDATABLOCK ; in allocate_new_datablock()
200 return ldi; in allocate_new_datablock()
203 local void free_datablock(linkedlist_datablock_internal* ldi) in free_datablock() argument
205 while (ldi!=NULL) in free_datablock()
207 linkedlist_datablock_internal* ldinext = ldi->next_datablock; in free_datablock()
208 TRYFREE(ldi); in free_datablock()
209 ldi = ldinext; in free_datablock()
227 linkedlist_datablock_internal* ldi; in add_data_in_datablock() local
240 ldi = ll->last_block; in add_data_in_datablock()
249 if (ldi->avail_in_this_block==0) in add_data_in_datablock()
251 ldi->next_datablock = allocate_new_datablock(); in add_data_in_datablock()
252 if (ldi->next_datablock == NULL) in add_data_in_datablock()
254 ldi = ldi->next_datablock ; in add_data_in_datablock()
255 ll->last_block = ldi; in add_data_in_datablock()
258 if (ldi->avail_in_this_block < len) in add_data_in_datablock()
259 copy_this = (uInt)ldi->avail_in_this_block; in add_data_in_datablock()
263 to_copy = &(ldi->data[ldi->filled_in_this_block]); in add_data_in_datablock()
268 ldi->filled_in_this_block += copy_this; in add_data_in_datablock()
269 ldi->avail_in_this_block -= copy_this; in add_data_in_datablock()
1909 linkedlist_datablock_internal* ldi = zi->central_dir.first_block; in zipClose() local
1910 while (ldi!=NULL) in zipClose()
1912 if ((err==ZIP_OK) && (ldi->filled_in_this_block>0)) in zipClose()
1914 …if (ZWRITE64(zi->z_filefunc,zi->filestream, ldi->data, ldi->filled_in_this_block) != ldi->filled_i… in zipClose()
1918 size_centraldir += ldi->filled_in_this_block; in zipClose()
1919 ldi = ldi->next_datablock; in zipClose()