|
NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
Public Member Functions | |
| TZip (const char *pwd) | |
| ~TZip () | |
| ZRESULT | Create (void *z, unsigned int len, DWORD flags) |
| unsigned int | write (const char *buf, unsigned int size) |
| bool | oseek (unsigned int pos) |
| ZRESULT | GetMemory (void **pbuf, unsigned long *plen) |
| ZRESULT | Close () |
| ZRESULT | open_file (const TCHAR *fn) |
| ZRESULT | open_handle (HANDLE hf, unsigned int len) |
| ZRESULT | open_mem (void *src, unsigned int len) |
| ZRESULT | open_dir () |
| unsigned | read (char *buf, unsigned size) |
| ZRESULT | iclose () |
| ZRESULT | ideflate (TZipFileInfo *zfi) |
| ZRESULT | istore () |
| ZRESULT | Add (const TCHAR *odstzn, void *src, unsigned int len, DWORD flags) |
| ZRESULT | AddCentral () |
Static Public Member Functions | |
| static unsigned | sflush (void *param, const char *buf, unsigned *size) |
| static unsigned | swrite (void *param, const char *buf, unsigned size) |
| static unsigned | sread (TState &s, char *buf, unsigned size) |
Public Attributes | |
| char * | password |
| HANDLE | hfout |
| bool | mustclosehfout |
| HANDLE | hmapout |
| unsigned | ooffset |
| ZRESULT | oerr |
| unsigned | writ |
| bool | ocanseek |
| char * | obuf |
| unsigned int | opos |
| unsigned int | mapsize |
| bool | hasputcen |
| bool | encwriting |
| unsigned long | keys [3] |
| char * | encbuf |
| unsigned int | encbufsize |
| TZipFileInfo * | zfis |
| TState * | state |
| ulg | attr |
| iztimes | times |
| ulg | timestamp |
| bool | iseekable |
| long | isize |
| long | ired |
| ulg | crc |
| HANDLE | hfin |
| bool | selfclosehf |
| const char * | bufin |
| unsigned int | lenin |
| unsigned int | posin |
| ulg | csize |
| char | buf [16384] |
|
inline |
| ZRESULT TZip::Add | ( | const TCHAR * | odstzn, |
| void * | src, | ||
| unsigned int | len, | ||
| DWORD | flags | ||
| ) |
Definition at line 2916 of file zip.cpp.
References iztimes::atime, zlist::att, attr, zlist::atx, BINARY, zlist::cext, zlist::cextra, zlist::com, zlist::comment, zlist::crc, crc, csize, iztimes::ctime, DEFLATE, zlist::dosflag, zlist::dsk, EB_C_UT_SIZE, EB_L_UT_SIZE, EB_LEN, EB_UT_FL_ATIME, EB_UT_FL_CTIME, EB_UT_FL_MTIME, EB_UT_LEN, encbuf, encwriting, zlist::ext, zlist::extra, zlist::flg, has_seeded, hasputcen, HasZipSuffix(), zlist::how, iclose(), ideflate(), if(), zlist::iname, isize, istore(), keys, zlist::len, zlist::lflg, LOCHEAD, zlist::mark, iztimes::mtime, zlist::nam, zlist::name, zlist::nxt, ocanseek, oerr, zlist::off, ooffset, open_dir(), open_file(), open_handle(), open_mem(), oseek(), password, putextended(), putlocal(), zlist::siz, STORE, swrite(), zlist::tim, times, timestamp, update_keys(), zlist::vem, zlist::ver, writ, ZE_OK, zencode(), zfis, ZIP_FILENAME, ZIP_FOLDER, ZIP_HANDLE, ZIP_MEMORY, zlist::zname, ZR_ARGS, ZR_ENDED, ZR_FAILED, ZR_NOCHANGE, ZR_OK, ZR_SEEK, and ZR_WRITE.
Referenced by ZipAddInternal().
| ZRESULT TZip::AddCentral | ( | ) |
| ZRESULT TZip::Close | ( | ) |
Definition at line 2687 of file zip.cpp.
References AddCentral(), hasputcen, hfout, hmapout, mustclosehfout, obuf, and ZR_OK.
Referenced by CloseZipZ().
| ZRESULT TZip::Create | ( | void * | z, |
| unsigned int | len, | ||
| DWORD | flags | ||
| ) |
Definition at line 2532 of file zip.cpp.
References FALSE, hasputcen, hfout, hmapout, mapsize, mustclosehfout, obuf, ocanseek, oerr, ooffset, opos, writ, ZIP_FILENAME, ZIP_HANDLE, ZIP_MEMORY, ZR_ARGS, ZR_MEMSIZE, ZR_NOALLOC, ZR_NOFILE, ZR_NOTINITED, and ZR_OK.
Referenced by CreateZipInternal().
| ZRESULT TZip::GetMemory | ( | void ** | pbuf, |
| unsigned long * | plen | ||
| ) |
Definition at line 2674 of file zip.cpp.
References AddCentral(), hasputcen, obuf, writ, ZR_NOTMMAP, and ZR_OK.
Referenced by ZipGetMemory().
| ZRESULT TZip::iclose | ( | ) |
Definition at line 2856 of file zip.cpp.
References hfin, ired, isize, selfclosehf, ZR_MISSIZE, and ZR_OK.
Referenced by Add().
| ZRESULT TZip::ideflate | ( | TZipFileInfo * | zfi | ) |
Definition at line 2868 of file zip.cpp.
References zlist::att, bi_init(), buf, csize, ct_init(), deflate(), ct_data::dl, TState::ds, TState::err, zlist::flg, TState::flush_outbuf, iseekable, ct_data::len, TState::level, lm_init(), TState::param, TState::readfunc, TState::seekable, sflush(), sread(), state, TTreeState::static_dtree, TRUE, TState::ts, TDeflateState::window_size, ZR_FLATE, and ZR_OK.
Referenced by Add().
| ZRESULT TZip::istore | ( | ) |
| ZRESULT TZip::open_dir | ( | ) |
Definition at line 2795 of file zip.cpp.
References iztimes::atime, attr, bufin, crc, CRCVAL_INITIAL, csize, iztimes::ctime, filetime2dosdatetime(), filetime2timet(), hfin, ired, iseekable, isize, iztimes::mtime, selfclosehf, times, timestamp, and ZR_OK.
Referenced by Add().
| ZRESULT TZip::open_file | ( | const TCHAR * | fn | ) |
Definition at line 2707 of file zip.cpp.
References bufin, crc, CRCVAL_INITIAL, csize, hfin, ired, isize, open_handle(), selfclosehf, ZR_ARGS, ZR_NOFILE, and ZR_OK.
Referenced by Add().
| ZRESULT TZip::open_handle | ( | HANDLE | hf, |
| unsigned int | len | ||
| ) |
Definition at line 2728 of file zip.cpp.
References iztimes::atime, attr, bufin, crc, CRCVAL_INITIAL, csize, iztimes::ctime, filetime2dosdatetime(), filetime2timet(), GetFileInfo(), hfin, hfout, ired, iseekable, isize, iztimes::mtime, selfclosehf, times, timestamp, ZR_ARGS, and ZR_OK.
Referenced by Add(), and open_file().
| ZRESULT TZip::open_mem | ( | void * | src, |
| unsigned int | len | ||
| ) |
Definition at line 2768 of file zip.cpp.
References iztimes::atime, attr, bufin, crc, CRCVAL_INITIAL, csize, iztimes::ctime, filetime2dosdatetime(), filetime2timet(), hfin, ired, iseekable, isize, lenin, iztimes::mtime, posin, selfclosehf, times, timestamp, ZR_ARGS, and ZR_OK.
Referenced by Add().
| bool TZip::oseek | ( | unsigned int | pos | ) |
| unsigned TZip::read | ( | char * | buf, |
| unsigned | size | ||
| ) |
|
static |
|
static |
Definition at line 2820 of file zip.cpp.
References buf, TState::param, and read().
Referenced by ideflate().
|
static |
| unsigned int TZip::write | ( | const char * | buf, |
| unsigned int | size | ||
| ) |
Definition at line 2608 of file zip.cpp.
References buf, encbuf, encbufsize, encwriting, hfout, keys, mapsize, obuf, oerr, opos, writ, zencode(), ZR_MEMSIZE, and ZR_NOTINITED.
Referenced by istore(), sflush(), and swrite().
| ulg TZip::attr |
Definition at line 2498 of file zip.cpp.
Referenced by Add(), open_dir(), open_handle(), and open_mem().
| char TZip::buf[16384] |
| const char* TZip::bufin |
Definition at line 2506 of file zip.cpp.
Referenced by open_dir(), open_file(), open_handle(), open_mem(), and read().
| ulg TZip::crc |
Definition at line 2503 of file zip.cpp.
Referenced by Add(), open_dir(), open_file(), open_handle(), open_mem(), and read().
| ulg TZip::csize |
Definition at line 2509 of file zip.cpp.
Referenced by Add(), ideflate(), istore(), open_dir(), open_file(), open_handle(), and open_mem().
| char* TZip::encbuf |
| bool TZip::hasputcen |
| HANDLE TZip::hfin |
Definition at line 2504 of file zip.cpp.
Referenced by iclose(), open_dir(), open_file(), open_handle(), open_mem(), and read().
| HANDLE TZip::hfout |
| long TZip::ired |
Definition at line 2502 of file zip.cpp.
Referenced by iclose(), open_dir(), open_file(), open_handle(), open_mem(), and read().
| bool TZip::iseekable |
Definition at line 2501 of file zip.cpp.
Referenced by ideflate(), open_dir(), open_handle(), and open_mem().
| long TZip::isize |
Definition at line 2502 of file zip.cpp.
Referenced by Add(), iclose(), open_dir(), open_file(), open_handle(), and open_mem().
| unsigned long TZip::keys[3] |
| unsigned int TZip::lenin |
Definition at line 2507 of file zip.cpp.
Referenced by open_mem(), and read().
| unsigned int TZip::mapsize |
| bool TZip::mustclosehfout |
| char* TZip::obuf |
| bool TZip::ocanseek |
| ZRESULT TZip::oerr |
| unsigned TZip::ooffset |
| unsigned int TZip::opos |
| char* TZip::password |
| unsigned int TZip::posin |
Definition at line 2507 of file zip.cpp.
Referenced by open_mem(), and read().
| bool TZip::selfclosehf |
Definition at line 2505 of file zip.cpp.
Referenced by iclose(), open_dir(), open_file(), open_handle(), and open_mem().
| TState* TZip::state |
Definition at line 2485 of file zip.cpp.
Referenced by ideflate(), and ~TZip().
| iztimes TZip::times |
Definition at line 2499 of file zip.cpp.
Referenced by Add(), open_dir(), open_handle(), and open_mem().
| ulg TZip::timestamp |
Definition at line 2500 of file zip.cpp.
Referenced by Add(), open_dir(), open_handle(), and open_mem().
| unsigned TZip::writ |
Definition at line 2473 of file zip.cpp.
Referenced by Add(), AddCentral(), Create(), GetMemory(), sflush(), and write().
| TZipFileInfo* TZip::zfis |
Definition at line 2484 of file zip.cpp.
Referenced by Add(), and AddCentral().