Lines Matching refs:uLong

117   uLong  avail_in_this_block;
118 uLong filled_in_this_block;
119 uLong unused; /* for future use and alignement */
143 uLong size_centralExtra;
144 uLong size_centralheader; /* size of the central header for cur file */
145 uLong size_centralExtraFree; /* Extra bytes allocated to the centralheader but that are not used */
146 uLong flag; /* flag of the file currently writing */
151 uLong dosDate;
152 uLong crc32;
225 local int add_data_in_datablock(linkedlist_data* ll, const void* buf, uLong len)
304 if (ZWRITE64(*pzlib_filefunc_def,filestream,buf,nbByte)!=(uLong)nbByte)
332 local uLong zip64local_TmzDateToDosDate(const tm_zip* ptm)
334 uLong year = (uLong)ptm->tm_year;
340 (uLong) (((ptm->tm_mday) + (32 * (ptm->tm_mon+1)) + (512 * year)) << 16) |
341 ((ptm->tm_sec/2) + (32* ptm->tm_min) + (2048 * (uLong)ptm->tm_hour));
371 local int zip64local_getShort OF((const zlib_filefunc64_32_def* pzlib_filefunc_def, voidpf filestream, uLong *pX));
373 local int zip64local_getShort (const zlib_filefunc64_32_def* pzlib_filefunc_def, voidpf filestream, uLong* pX)
375 uLong x ;
380 x = (uLong)i;
384 x += ((uLong)i)<<8;
393 local int zip64local_getLong OF((const zlib_filefunc64_32_def* pzlib_filefunc_def, voidpf filestream, uLong *pX));
395 local int zip64local_getLong (const zlib_filefunc64_32_def* pzlib_filefunc_def, voidpf filestream, uLong* pX)
397 uLong x ;
402 x = (uLong)i;
406 x += ((uLong)i)<<8;
410 x += ((uLong)i)<<16;
414 x += ((uLong)i)<<24;
504 uLong uReadSize;
514 (BUFREADCOMMENT+4) : (uLong)(uSizeFile-uReadPos);
549 uLong uL;
567 uLong uReadSize;
577 (BUFREADCOMMENT+4) : (uLong)(uSizeFile-uReadPos);
648 uLong uL;
650 uLong number_disk; /* number of the current dist, used for
652 uLong number_disk_with_CD; /* number the the disk with central dir, used
658 uLong VersionMadeBy;
659 uLong VersionNeeded;
660 uLong size_comment;
825 if (ZREAD64(pziinit->z_filefunc, pziinit->filestream,buf_read,(uLong)read_this) != read_this)
829 err = add_data_in_datablock(&pziinit->central_dir,buf_read, (uLong)read_this);
965 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)LOCALHEADERMAGIC, 4);
970 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)45,2);/* version needed to extract */
972 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)20,2);/* version needed to extract */
976 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)zi->ci.flag,2);
979 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)zi->ci.method,2);
982 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)zi->ci.dosDate,4);
986 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)0,4); /* crc 32, unknown */
990 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)0xFFFFFFFF,4); /* compressed size, unknown */
992 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)0,4); /* compressed size, unknown */
997 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)0xFFFFFFFF,4); /* uncompressed size, unknown */
999 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)0,4); /* uncompressed size, unknown */
1003 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)size_filename,2);
1011 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)size_extrafield,2);
1060 const char* password, uLong crcForCrypting,
1061 uLong versionMadeBy, uLong flagBase, int zip64)
1138 zip64local_putValue_inmemory(zi->ci.central_header,(uLong)CENTRALHEADERMAGIC,4);
1140 zip64local_putValue_inmemory(zi->ci.central_header+4,(uLong)versionMadeBy,2);
1141 zip64local_putValue_inmemory(zi->ci.central_header+6,(uLong)20,2);
1142 zip64local_putValue_inmemory(zi->ci.central_header+8,(uLong)zi->ci.flag,2);
1143 zip64local_putValue_inmemory(zi->ci.central_header+10,(uLong)zi->ci.method,2);
1144 zip64local_putValue_inmemory(zi->ci.central_header+12,(uLong)zi->ci.dosDate,4);
1145 zip64local_putValue_inmemory(zi->ci.central_header+16,(uLong)0,4); /*crc*/
1146 zip64local_putValue_inmemory(zi->ci.central_header+20,(uLong)0,4); /*compr size*/
1147 zip64local_putValue_inmemory(zi->ci.central_header+24,(uLong)0,4); /*uncompr size*/
1148 zip64local_putValue_inmemory(zi->ci.central_header+28,(uLong)size_filename,2);
1149 zip64local_putValue_inmemory(zi->ci.central_header+30,(uLong)size_extrafield_global,2);
1150 zip64local_putValue_inmemory(zi->ci.central_header+32,(uLong)size_comment,2);
1151 zip64local_putValue_inmemory(zi->ci.central_header+34,(uLong)0,2); /*disk nm start*/
1154 zip64local_putValue_inmemory(zi->ci.central_header+36,(uLong)0,2);
1156 zip64local_putValue_inmemory(zi->ci.central_header+36,(uLong)zipfi->internal_fa,2);
1159 zip64local_putValue_inmemory(zi->ci.central_header+38,(uLong)0,4);
1161 zip64local_putValue_inmemory(zi->ci.central_header+38,(uLong)zipfi->external_fa,4);
1164 zip64local_putValue_inmemory(zi->ci.central_header+42,(uLong)0xffffffff,4);
1166 zip64local_putValue_inmemory(zi->ci.central_header+42,(uLong)zi->ci.pos_local_header - zi->add_position_when_writting_offset,4);
1269 const char* password, uLong crcForCrypting,
1270 uLong versionMadeBy, uLong flagBase)
1285 const char* password, uLong crcForCrypting)
1300 const char* password, uLong crcForCrypting, int zip64)
1438 uLong uTotalOutBefore_lo = zi->ci.bstream.total_out_lo32;
1439 // uLong uTotalOutBefore_hi = zi->ci.bstream.total_out_hi32;
1471 uLong uTotalOutBefore = zi->ci.stream.total_out;
1508 extern int ZEXPORT zipCloseFileInZipRaw (zipFile file, uLong uncompressed_size, uLong crc32)
1513 extern int ZEXPORT zipCloseFileInZipRaw64 (zipFile file, ZPOS64_T uncompressed_size, uLong crc32)
1517 uLong invalidValue = 0xffffffff;
1533 uLong uTotalOutBefore;
1552 uLong uTotalOutBefore;
1601 crc32 = (uLong)zi->ci.crc32;
1614 zip64local_putValue_inmemory(zi->ci.central_header+4,(uLong)45,2);
1616 zip64local_putValue_inmemory(zi->ci.central_header+6,(uLong)45,2);
1630 zip64local_putValue_inmemory(zi->ci.central_header+36,(uLong)Z_ASCII,2);
1653 if((uLong)(datasize + 4) > zi->ci.size_centralExtraFree)
1693 zip64local_putValue_inmemory(zi->ci.central_header+30,(uLong)zi->ci.size_centralExtra,2);
1697 err = add_data_in_datablock(&zi->central_dir, zi->ci.central_header, (uLong)zi->ci.size_centralheader);
1757 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)ZIP64ENDLOCHEADERMAGIC,4);
1761 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)0,4);
1769 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)1,4);
1774 int Write_Zip64EndOfCentralDirectoryRecord(zip64_internal* zi, uLong size_centraldir, ZPOS64_T centraldir_pos_inzip)
1778 uLong Zip64DataSize = 44;
1780 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)ZIP64ENDHEADERMAGIC,4);
1786 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)45,2);
1789 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)45,2);
1792 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)0,4);
1795 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)0,4);
1813 int Write_EndOfCentralDirectoryRecord(zip64_internal* zi, uLong size_centraldir, ZPOS64_T centraldir_pos_inzip)
1818 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)ENDHEADERMAGIC,4);
1821 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)0,2);
1824 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)0,2);
1830 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)0xffff,2); // use value in ZIP64 record
1832 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)zi->number_entry,2);
1839 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)0xffff,2); // use value in ZIP64 record
1841 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)zi->number_entry,2);
1845 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)size_centraldir,4);
1852 err = zip64local_putValue(&zi->z_filefunc,zi->filestream, (uLong)0xffffffff,4);
1855 err = zip64local_putValue(&zi->z_filefunc,zi->filestream, (uLong)(centraldir_pos_inzip - zi->add_position_when_writting_offset),4);
1869 err = zip64local_putValue(&zi->z_filefunc,zi->filestream,(uLong)size_global_comment,2);
1883 uLong size_centraldir = 0;