File: pakfile.h

package info (click to toggle)
amoeba 1.1-32
  • links: PTS
  • area: contrib
  • in suites: forky, sid
  • size: 1,492 kB
  • sloc: cpp: 8,384; makefile: 140
file content (25 lines) | stat: -rw-r--r-- 327 bytes parent folder | download | duplicates (13)
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
#ifndef _PAKFILE_H
#define _PAKFILE_H

#include "file.h"

struct pak_direntry {
	char filename[56];
	unsigned int pos;
	unsigned int size;
};

class PakFile : public File {
public:
	PakFile(char *filename);
	~PakFile();

	char *get_data();
	int data_length();

protected:
	char *data;
	int length;
};

#endif /* !_PAKFILE_H */