Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
CTCaer
GitHub Repository: CTCaer/hekate
Path: blob/master/tools/lz/lz.h
1476 views
1
//
2
// Name: lz.h
3
// Author: Marcus Geelnard
4
// Description: LZ77 coder/decoder interface.
5
// Reentrant: Yes
6
// ------------------------------------------------------------------------
7
// $ATH_LICENSE_NULL$
8
// Copyright (c) 2003-2006 Marcus Geelnard
9
//
10
// This software is provided 'as-is', without any express or implied
11
// warranty. In no event will the authors be held liable for any damages
12
// arising from the use of this software.
13
//
14
// Permission is granted to anyone to use this software for any purpose,
15
// including commercial applications, and to alter it and redistribute it
16
// freely, subject to the following restrictions:
17
//
18
// 1. The origin of this software must not be misrepresented; you must not
19
// claim that you wrote the original software. If you use this software
20
// in a product, an acknowledgment in the product documentation would
21
// be appreciated but is not required.
22
//
23
// 2. Altered source versions must be plainly marked as such, and must not
24
// be misrepresented as being the original software.
25
//
26
// 3. This notice may not be removed or altered from any source
27
// distribution.
28
//
29
// Marcus Geelnard
30
// marcus.geelnard at home.se
31
//
32
33
//
34
// This file has been altered from the original version.
35
//
36
37
#ifndef _lz_h_
38
#define _lz_h_
39
40
#ifdef __cplusplus
41
extern "C" {
42
#endif
43
44
45
/*************************************************************************
46
* Function prototypes
47
*************************************************************************/
48
49
int LZ_Compress( unsigned char *in, unsigned char *out,
50
unsigned int insize );
51
int LZ_CompressFast( unsigned char *in, unsigned char *out,
52
unsigned int insize, unsigned int *work );
53
int LZ_Uncompress( unsigned char *in, unsigned char *out,
54
unsigned int insize );
55
56
57
#ifdef __cplusplus
58
}
59
#endif
60
61
#endif /* _lz_h_ */
62
63