MCPcopy Create free account
hub / github.com/MariaDB/server / writeEntry

Method writeEntry

storage/connect/filamzip.cpp:432–440  ·  view source on GitHub ↗

/ writeEntry: Deflate the buffer to the zip file. */ /

Source from the content-addressed store, hash-verified

430/* writeEntry: Deflate the buffer to the zip file. */
431/***********************************************************************/
432int ZIPUTIL::writeEntry(PGLOBAL g, char *buf, int len)
433{
434 if (zipWriteInFileInZip(zipfile, buf, len) < 0) {
435 snprintf(g->Message, sizeof(g->Message), "Error writing %s in the zipfile", target);
436 return RC_FX;
437 } // endif zipWriteInFileInZip
438
439 return RC_OK;
440} // end of writeEntry
441
442/***********************************************************************/
443/* Close the zip file. */

Callers 2

ZipFileFunction · 0.80
WriteBufferMethod · 0.80

Calls 1

zipWriteInFileInZipFunction · 0.85

Tested by

no test coverage detected