MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / zip64FlushWriteBuffer

Function zip64FlushWriteBuffer

extlibs/minizip/src/zip.c:1349–1386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1347}
1348
1349local int zip64FlushWriteBuffer(zip64_internal* zi)
1350{
1351 int err = ZIP_OK;
1352
1353 if (zi->ci.encrypt != 0)
1354 {
1355#ifndef NOCRYPT
1356 uInt i;
1357 int t;
1358 for (i = 0; i < zi->ci.pos_in_buffered_data; i++)
1359 zi->ci.buffered_data[i] = zencode(zi->ci.keys, zi->ci.pcrc_32_tab, zi->ci.buffered_data[i],t);
1360#endif
1361 }
1362
1363 if (ZWRITE64(zi->z_filefunc,zi->filestream,zi->ci.buffered_data,zi->ci.pos_in_buffered_data) != zi->ci.pos_in_buffered_data)
1364 err = ZIP_ERRNO;
1365
1366 zi->ci.totalCompressedData += zi->ci.pos_in_buffered_data;
1367
1368#ifdef HAVE_BZIP2
1369 if(zi->ci.method == Z_BZIP2ED)
1370 {
1371 zi->ci.totalUncompressedData += zi->ci.bstream.total_in_lo32;
1372 zi->ci.bstream.total_in_lo32 = 0;
1373 zi->ci.bstream.total_in_hi32 = 0;
1374 }
1375 else
1376#endif
1377 {
1378 zi->ci.totalUncompressedData += zi->ci.stream.total_in;
1379 zi->ci.stream.total_in = 0;
1380 }
1381
1382
1383 zi->ci.pos_in_buffered_data = 0;
1384
1385 return err;
1386}
1387
1388extern int ZEXPORT zipWriteInFileInZip(zipFile file, const void* buf, unsigned int len)
1389{

Callers 2

zipWriteInFileInZipFunction · 0.85
zipCloseFileInZipRaw64Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected