MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / zip64FlushWriteBuffer

Function zip64FlushWriteBuffer

common/minizip/zip.c:1363–1400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1361}
1362
1363local int zip64FlushWriteBuffer(zip64_internal* zi)
1364{
1365 int err=ZIP_OK;
1366
1367 if (zi->ci.encrypt != 0)
1368 {
1369#ifndef NOCRYPT
1370 uInt i;
1371 int t;
1372 for (i=0;i<zi->ci.pos_in_buffered_data;i++)
1373 zi->ci.buffered_data[i] = zencode(zi->ci.keys, zi->ci.pcrc_32_tab, zi->ci.buffered_data[i],t);
1374#endif
1375 }
1376
1377 if (ZWRITE64(zi->z_filefunc,zi->filestream,zi->ci.buffered_data,zi->ci.pos_in_buffered_data) != zi->ci.pos_in_buffered_data)
1378 err = ZIP_ERRNO;
1379
1380 zi->ci.totalCompressedData += zi->ci.pos_in_buffered_data;
1381
1382#ifdef HAVE_BZIP2
1383 if(zi->ci.method == Z_BZIP2ED)
1384 {
1385 zi->ci.totalUncompressedData += zi->ci.bstream.total_in_lo32;
1386 zi->ci.bstream.total_in_lo32 = 0;
1387 zi->ci.bstream.total_in_hi32 = 0;
1388 }
1389 else
1390#endif
1391 {
1392 zi->ci.totalUncompressedData += zi->ci.stream.total_in;
1393 zi->ci.stream.total_in = 0;
1394 }
1395
1396
1397 zi->ci.pos_in_buffered_data = 0;
1398
1399 return err;
1400}
1401
1402extern int ZEXPORT zipWriteInFileInZip (zipFile file,const void* buf,unsigned int len)
1403{

Callers 2

zipWriteInFileInZipFunction · 0.85
zipCloseFileInZipRaw64Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected