-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcache1d.h
More file actions
55 lines (47 loc) · 2.01 KB
/
cache1d.h
File metadata and controls
55 lines (47 loc) · 2.01 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* Cache1d declarations.
*
* Written by Ryan C. Gordon. (icculus@clutteredmind.org)
*
* Please do NOT harrass Ken Silverman about any code modifications
* (including this file) to BUILD.
*/
/*
* "Build Engine & Tools" Copyright (c) 1993-1997 Ken Silverman
* Ken Silverman's official web site: "http://www.advsys.net/ken"
* See the included license file "BUILDLIC.TXT" for license info.
* This file has been modified from Ken Silverman's original release
*/
#ifndef _INCLUDE_CACHE1D_H_
#define _INCLUDE_CACHE1D_H_
void initcache(long dacachestart, long dacachesize);
void allocache (long *newhandle, long newbytes, unsigned char *newlockptr);
void suckcache (long *suckptr);
void agecache(void);
void reportandexit(char *errormessage);
long initgroupfile(const char *filename);
void uninitgroupfile(void);
long kopen4load(const char *filename, char searchfirst);
long kread(long handle, void *buffer, long leng);
int kread8(long handle, char *buffer);
int kread16(long handle, short *buffer);
int kread32(long handle, long *buffer);
long klseek(long handle, long offset, long whence);
long kfilelength(long handle);
void kclose(long handle);
void kdfread(void *buffer, size_t dasizeof, size_t count, long fil);
void kdfread8(char *buffer, size_t count, long fil);
void kdfread16(short *buffer, size_t count, long fil);
void kdfread32(long *buffer, size_t count, long fil);
void dfread(void *buffer, size_t dasizeof, size_t count, FILE *fil);
void dfread8(char *buffer, size_t count, FILE *fil);
void dfread16(short *buffer, size_t count, FILE *fil);
void dfread32(long *buffer, size_t count, FILE *fil);
void dfwrite(void *buffer, size_t dasizeof, size_t count, FILE *fil);
void dfwrite8(char *buffer, size_t count, FILE *fil);
void dfwrite16(short *buffer, size_t count, FILE *fil);
void dfwrite32(long *buffer, size_t count, FILE *fil);
long compress(char *lzwinbuf, long uncompleng, char *lzwoutbuf);
long uncompress(char *lzwinbuf, long compleng, char *lzwoutbuf);
#endif /* !defined _INCLUDE_CACHE1D_H_ */
/* end of cache1d.h ... */