CZipMemFile Class Reference

A memory buffer which behaves like a physical file. More...

#include <ZipMemFile.h>

List of all members.

Public Member Functions

bool IsClosed () const
void Flush ()
ZIP_ULONGLONG Seek (ZIP_LONGLONG lOff, int nFrom)
ZIP_ULONGLONG GetLength () const
void Write (const void *lpBuf, UINT nCount)
UINT Read (void *lpBuf, UINT nCount)
void SetLength (ZIP_ULONGLONG nNewLen)
CZipString GetFilePath () const
 CZipMemFile (long nGrowBy=1024)
 CZipMemFile (BYTE *lpBuf, UINT nBufSize, long nGrowBy=0)
 CZipMemFile (CZipMemFile &from)
void Copy (CZipMemFile &from)
ZIP_ULONGLONG GetPosition () const
void Attach (BYTE *lpBuf, UINT nBufSize, long nGrowBy=0)
BYTE * Detach ()
void Close ()
virtual ~CZipMemFile ()

Protected Member Functions

void Free ()
void Init ()
void Grow (size_t nBytes)

Protected Attributes

size_t m_nGrowBy
size_t m_nPos
size_t m_nBufSize
size_t m_nDataSize
BYTE * m_lpBuf
bool m_bAutoDelete


Detailed Description

A memory buffer which behaves like a physical file.

Automatically grows when necessary

Definition at line 36 of file ZipMemFile.h.


The documentation for this class was generated from the following file:
ZipArchive Copyright © 2000 - 2006 Tadeusz Dracz . Generated at Fri Apr 7 13:55:25 2006.