mirror of
https://github.com/DrBeef/Raze.git
synced 2024-12-17 08:01:33 +00:00
31 lines
965 B
C
31 lines
965 B
C
|
// "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
|
||
|
// by Jonathon Fowler (jf@jonof.id.au)
|
||
|
// by the EDuke32 team (development@voidpoint.com)
|
||
|
|
||
|
#ifndef klzw_h_
|
||
|
#define klzw_h_
|
||
|
|
||
|
#include "compat.h"
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
// These two follow the argument order of the C functions "read" and "write":
|
||
|
// handle, buffer, length.
|
||
|
typedef int32_t (*klzw_readfunc)(intptr_t, void *, int32_t);
|
||
|
typedef void (*klzw_writefunc)(intptr_t, void const *, int32_t);
|
||
|
|
||
|
int32_t klzw_read_compressed(void *buffer, bsize_t dasizeof, bsize_t count, intptr_t f, klzw_readfunc readfunc);
|
||
|
void klzw_write_compressed(const void *buffer, bsize_t dasizeof, bsize_t count, intptr_t f, klzw_writefunc writefunc);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif // klzw_h_
|