The Build Engine

- Main Page
- Classes
- Files

- File List
- File Members

cache1d.h
1 /*
2 * Cache1d declarations.
3 *
4 * Written by Ryan C. Gordon. (icculus@clutteredmind.org)
5 *
6 * Please do NOT harrass Ken Silverman about any code modifications
7 * (including this file) to BUILD.
8 */
9
10 /*
11 * "Build Engine & Tools" Copyright (c) 1993-1997 Ken Silverman
12 * Ken Silverman's official web site: "http://www.advsys.net/ken"
13 * See the included license file "BUILDLIC.TXT" for license info.
14 * This file has been modified from Ken Silverman's original release
15 */
16
17 #ifndef _INCLUDE_CACHE1D_H_
18 #define _INCLUDE_CACHE1D_H_
19
20 void initcache(long dacachestart, long dacachesize);
21 void allocache (long *newhandle, long newbytes, unsigned char *newlockptr);
22 void suckcache (long *suckptr);
23 void agecache(void);
24 void reportandexit(char *errormessage);
25 long initgroupfile(const char *filename);
26 void uninitgroupfile(void);
27 long kopen4load(const char *filename, char searchfirst);
28 long kread(long handle, void *buffer, long leng);
29 int kread8(long handle, char *buffer);
30 int kread16(long handle, short *buffer);
31 int kread32(long handle, long *buffer);
32 long klseek(long handle, long offset, long whence);
33 long kfilelength(long handle);
34 void kclose(long handle);
35 void kdfread(void *buffer, size_t dasizeof, size_t count, long fil);
36 void kdfread8(char *buffer, size_t count, long fil);
37 void kdfread16(short *buffer, size_t count, long fil);
38 void kdfread32(long *buffer, size_t count, long fil);
39 void dfread(void *buffer, size_t dasizeof, size_t count, FILE *fil);
40 void dfread8(char *buffer, size_t count, FILE *fil);
41 void dfread16(short *buffer, size_t count, FILE *fil);
42 void dfread32(long *buffer, size_t count, FILE *fil);
43 void dfwrite(void *buffer, size_t dasizeof, size_t count, FILE *fil);
44 void dfwrite8(char *buffer, size_t count, FILE *fil);
45 void dfwrite16(short *buffer, size_t count, FILE *fil);
46 void dfwrite32(long *buffer, size_t count, FILE *fil);
47 long compress(char *lzwinbuf, long uncompleng, char *lzwoutbuf);
48 long uncompress(char *lzwinbuf, long compleng, char *lzwoutbuf);
49
50 #endif /* !defined _INCLUDE_CACHE1D_H_ */
51
52 /* end of cache1d.h ... */
53
54
55