-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzfile.h
38 lines (31 loc) · 786 Bytes
/
zfile.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef __ZFILE_H__
#define __ZFILE_H__
#include "afile.h"
#include "af_file.h"
#include "zipfs.h"
class ZFile : public AFile
{
protected :
AF_FILE m_fd;
ZFileEntry *m_fe;
private :
ZFile();
public:
~ZFile();
static ZFile *open(const char *file_name, const char *sub_name);
static bool isDir(const char *file_name, const char *sub_name);
static bool isFile(const char *file_name, const char *sub_name);
virtual int read(char *buffer, int length);
virtual int seek(int offset, int whence);
virtual int tell();
virtual void close() { };
virtual int size();
};
#ifdef __cplusplus
extern "C" {
#endif
void ZFileSystemGC();
#ifdef __cplusplus
};
#endif
#endif