#include <zipfile.h>
Inherits dbOSFile.
Public Types | |
enum | ReturnStatus { ok = 0, eof = -1, not_supported = -2 } |
enum | OpenAttributes { read_only = 0x01, truncate = 0x02, sequential = 0x04, no_buffering = 0x08, no_sync = 0x10, shared = 0x20, write_through = 0x40, delete_on_close = 0x80 } |
enum | LockType { lck_shared, lck_exclusive } |
Public Member Functions | |
virtual int | open (char_t const *fileName, int attr) |
virtual char_t * | errorText (int code, char_t *buf, size_t bufSize) |
virtual int | close () |
virtual int | write (offs_t pos, void const *ptr, size_t size) |
virtual int | read (offs_t pos, void *ptr, size_t size) |
virtual int | write (void const *ptr, size_t size) |
virtual int | read (void *ptr, size_t size) |
virtual int | lock (LockType lck) |
virtual int | unlock () |
int | flush () |
int | setSize (offs_t offs) |
int | copy (dbFile *dst, offs_t offs, offs_t size) |
Static Public Member Functions | |
static void * | allocateBuffer (size_t bufferSize, bool lock=false) |
static void | deallocateBuffer (void *buffer, size_t size=0, bool unlock=false) |
static void | protectBuffer (void *buf, size_t bufSize, bool readonly) |
static size_t | ramSize () |
Protected Attributes | |
int | fd |
bool | noSync |
dbMutex | mutex |
Compressed file