Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CZIPFile::File Class Reference

#include <ZIPFile.h>

List of all members.

Public Member Functions

CBufferDecompress ()
BOOL Extract (LPCTSTR pszFile)

Public Attributes

CString m_sName
QWORD m_nSize

Protected Member Functions

BOOL PrepareToDecompress (LPVOID pStream)

Protected Attributes

QWORD m_nLocalOffset
QWORD m_nCompressedSize
int m_nCompression

Private Member Functions

 File ()

Private Attributes

CZIPFilem_pZIP

Friends

class CZIPFile


Constructor & Destructor Documentation

CZIPFile::File::File  )  [inline, private]
 

Definition at line 40 of file ZIPFile.h.


Member Function Documentation

CBuffer * CZIPFile::File::Decompress  ) 
 

Definition at line 358 of file ZIPFile.cpp.

References z_stream_s::avail_in, z_stream_s::avail_out, CBuffer::EnsureBuffer(), inflate(), inflateEnd(), CZIPFile::m_hFile, m_nCompressedSize, m_nCompression, CBuffer::m_nLength, m_nSize, CBuffer::m_pBuffer, m_pZIP, z_stream_s::next_in, z_stream_s::next_out, NULL, PrepareToDecompress(), and Z_FINISH.

Referenced by CCollectionFile::LoadManifest(), and CIEProtocol::OnRequestRAZACOL().

BOOL CZIPFile::File::Extract LPCTSTR  pszFile  ) 
 

Definition at line 415 of file ZIPFile.cpp.

References z_stream_s::avail_in, z_stream_s::avail_out, BUFFER_IN_SIZE, BUFFER_OUT_SIZE, inflate(), inflateEnd(), CZIPFile::m_hFile, m_nCompressedSize, m_nCompression, m_nSize, m_pZIP, z_stream_s::next_in, z_stream_s::next_out, NULL, PrepareToDecompress(), Z_DEFLATED, and Z_SYNC_FLUSH.

BOOL CZIPFile::File::PrepareToDecompress LPVOID  pStream  )  [protected]
 

Definition at line 338 of file ZIPFile.cpp.

References inflateInit2, m_nCompressedSize, m_nCompression, m_nSize, m_pZIP, MAX_WBITS, CZIPFile::SeekToFile(), Z_DEFLATED, and Z_OK.

Referenced by Decompress(), and Extract().


Friends And Related Function Documentation

friend class CZIPFile [friend]
 

Definition at line 39 of file ZIPFile.h.


Member Data Documentation

QWORD CZIPFile::File::m_nCompressedSize [protected]
 

Definition at line 50 of file ZIPFile.h.

Referenced by Decompress(), Extract(), CZIPFile::ParseCentralDirectory(), and PrepareToDecompress().

int CZIPFile::File::m_nCompression [protected]
 

Definition at line 51 of file ZIPFile.h.

Referenced by Decompress(), Extract(), CZIPFile::ParseCentralDirectory(), and PrepareToDecompress().

QWORD CZIPFile::File::m_nLocalOffset [protected]
 

Definition at line 49 of file ZIPFile.h.

Referenced by CZIPFile::ParseCentralDirectory(), and CZIPFile::SeekToFile().

QWORD CZIPFile::File::m_nSize
 

Definition at line 47 of file ZIPFile.h.

Referenced by Decompress(), Extract(), CZIPFile::ParseCentralDirectory(), and PrepareToDecompress().

CZIPFile* CZIPFile::File::m_pZIP [private]
 

Definition at line 40 of file ZIPFile.h.

Referenced by Decompress(), Extract(), CZIPFile::ParseCentralDirectory(), PrepareToDecompress(), and CZIPFile::SeekToFile().

CString CZIPFile::File::m_sName
 

Definition at line 46 of file ZIPFile.h.

Referenced by CZIPFile::GetFile(), and CZIPFile::ParseCentralDirectory().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:14 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2