NCBI C++ ToolKit
Classes | Macros | Functions
archive_zip.cpp File Reference
#include <ncbi_pch.hpp>
#include <util/error_codes.hpp>
#include <util/compress/zlib.hpp>
#include "archive_zip.hpp"
#include "miniz/miniz.c"
+ Include dependency graph for archive_zip.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.


struct  SZipHandle
 ZIP archive handle type definition. More...
struct  SWriteCallbackData


#define NCBI_USE_ERRCODE_X   Util_Compress
#define ZIP_HANDLE   &(m_Handle->zip)
#define ZIP_CHECK   _ASSERT(m_Handle != NULL)
#define ZIP_NEW
#define ZIP_DELETE
#define ZIP_THROW(errcode, message)    NCBI_THROW(CArchiveException, errcode, message)


static size_t s_ZipExtractCallback (void *params, mz_uint64, const void *buf, size_t n)
static size_t s_ZipTestCallback (void *, mz_uint64, const void *, size_t n)

Macro Definition Documentation



Definition at line 47 of file archive_zip.cpp.


#define NCBI_USE_ERRCODE_X   Util_Compress

Definition at line 38 of file archive_zip.cpp.


#define ZIP_CHECK   _ASSERT(m_Handle != NULL)

Definition at line 92 of file archive_zip.cpp.


#define ZIP_DELETE
{ \
_ASSERT(m_Handle != NULL); \
delete m_Handle; \
m_Handle = NULL; \
#define NULL
Definition: ncbistd.hpp:225

Definition at line 100 of file archive_zip.cpp.


#define ZIP_HANDLE   &(m_Handle->zip)

Definition at line 91 of file archive_zip.cpp.


#define ZIP_NEW
{ \
_ASSERT(m_Handle == NULL); \
m_Handle = new SZipHandle(); \
_ASSERT(m_Handle != NULL); \
ZIP archive handle type definition.
Definition: archive_zip.cpp:79

Definition at line 93 of file archive_zip.cpp.


#define ZIP_THROW (   errcode,
)     NCBI_THROW(CArchiveException, errcode, message)

Definition at line 108 of file archive_zip.cpp.

Function Documentation

◆ s_ZipExtractCallback()

static size_t s_ZipExtractCallback ( void *  params,
mz_uint64  ,
const void *  buf,
size_t  n 

Definition at line 433 of file archive_zip.cpp.

References _ASSERT, buf, data, and n.

Referenced by CArchiveZip::ExtractEntryToCallback().

◆ s_ZipTestCallback()

static size_t s_ZipTestCallback ( void *  ,
mz_uint64  ,
const void *  ,
size_t  n 

Definition at line 470 of file archive_zip.cpp.

References n.

Referenced by CArchiveZip::TestEntry().

Modified on Thu May 23 12:32:31 2024 by rev. 669887