Upx_Doxygen
https://github.com/upx/upx
compress.h
1
/* compress.h --
2
3
This file is part of the UPX executable compressor.
4
5
Copyright (C) 1996-2016 Markus Franz Xaver Johannes Oberhumer
6
Copyright (C) 1996-2016 Laszlo Molnar
7
All Rights Reserved.
8
9
UPX and the UCL library are free software; you can redistribute them
10
and/or modify them under the terms of the GNU General Public License as
11
published by the Free Software Foundation; either version 2 of
12
the License, or (at your option) any later version.
13
14
This program is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
GNU General Public License for more details.
18
19
You should have received a copy of the GNU General Public License
20
along with this program; see the file COPYING.
21
If not, write to the Free Software Foundation, Inc.,
22
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
24
Markus F.X.J. Oberhumer Laszlo Molnar
25
<markus@oberhumer.com> <ezerotven+github@gmail.com>
26
*/
27
28
29
#ifndef __UPX_COMPRESS_H
30
#define __UPX_COMPRESS_H 1
31
32
33
/*************************************************************************
34
//
35
**************************************************************************/
36
37
#if (WITH_LZMA)
38
int
upx_lzma_init(
void
);
39
const
char
*upx_lzma_version_string(
void
);
40
int
upx_lzma_compress (
const
upx_bytep src,
unsigned
src_len,
41
upx_bytep dst,
unsigned
* dst_len,
42
upx_callback_p
cb,
43
int
method,
int
level,
44
const
upx_compress_config_t
*cconf,
45
upx_compress_result_t
*cresult );
46
int
upx_lzma_decompress (
const
upx_bytep src,
unsigned
src_len,
47
upx_bytep dst,
unsigned
* dst_len,
48
int
method,
49
const
upx_compress_result_t
*cresult );
50
int
upx_lzma_test_overlap (
const
upx_bytep buf,
51
const
upx_bytep tbuf,
52
unsigned
src_off,
unsigned
src_len,
53
unsigned
* dst_len,
54
int
method,
55
const
upx_compress_result_t
*cresult );
56
#endif
57
58
59
#if (WITH_NRV)
60
int
upx_nrv_init(
void
);
61
const
char
*upx_nrv_version_string(
void
);
62
int
upx_nrv_compress (
const
upx_bytep src,
unsigned
src_len,
63
upx_bytep dst,
unsigned
* dst_len,
64
upx_callback_p
cb,
65
int
method,
int
level,
66
const
upx_compress_config_t
*cconf,
67
upx_compress_result_t
*cresult );
68
int
upx_nrv_decompress (
const
upx_bytep src,
unsigned
src_len,
69
upx_bytep dst,
unsigned
* dst_len,
70
int
method,
71
const
upx_compress_result_t
*cresult );
72
int
upx_nrv_test_overlap (
const
upx_bytep buf,
73
const
upx_bytep tbuf,
74
unsigned
src_off,
unsigned
src_len,
75
unsigned
* dst_len,
76
int
method,
77
const
upx_compress_result_t
*cresult );
78
#endif
79
80
81
#if (WITH_UCL)
82
int
upx_ucl_init(
void
);
83
const
char
*upx_ucl_version_string(
void
);
84
int
upx_ucl_compress (
const
upx_bytep src,
unsigned
src_len,
85
upx_bytep dst,
unsigned
* dst_len,
86
upx_callback_p
cb,
87
int
method,
int
level,
88
const
upx_compress_config_t
*cconf,
89
upx_compress_result_t
*cresult );
90
int
upx_ucl_decompress (
const
upx_bytep src,
unsigned
src_len,
91
upx_bytep dst,
unsigned
* dst_len,
92
int
method,
93
const
upx_compress_result_t
*cresult );
94
int
upx_ucl_test_overlap (
const
upx_bytep buf,
95
const
upx_bytep tbuf,
96
unsigned
src_off,
unsigned
src_len,
97
unsigned
* dst_len,
98
int
method,
99
const
upx_compress_result_t
*cresult );
100
unsigned
upx_ucl_adler32(
const
void
*buf,
unsigned
len,
unsigned
adler);
101
unsigned
upx_ucl_crc32 (
const
void
*buf,
unsigned
len,
unsigned
crc);
102
#endif
103
104
105
#if (WITH_ZLIB)
106
int
upx_zlib_init(
void
);
107
const
char
*upx_zlib_version_string(
void
);
108
int
upx_zlib_compress (
const
upx_bytep src,
unsigned
src_len,
109
upx_bytep dst,
unsigned
* dst_len,
110
upx_callback_p
cb,
111
int
method,
int
level,
112
const
upx_compress_config_t
*cconf,
113
upx_compress_result_t
*cresult );
114
int
upx_zlib_decompress (
const
upx_bytep src,
unsigned
src_len,
115
upx_bytep dst,
unsigned
* dst_len,
116
int
method,
117
const
upx_compress_result_t
*cresult );
118
int
upx_zlib_test_overlap (
const
upx_bytep buf,
119
const
upx_bytep tbuf,
120
unsigned
src_off,
unsigned
src_len,
121
unsigned
* dst_len,
122
int
method,
123
const
upx_compress_result_t
*cresult );
124
unsigned
upx_zlib_adler32(
const
void
*buf,
unsigned
len,
unsigned
adler);
125
unsigned
upx_zlib_crc32 (
const
void
*buf,
unsigned
len,
unsigned
crc);
126
#endif
127
128
129
#endif
/* already included */
130
131
/* vim:set ts=4 sw=4 et: */
upx_compress_result_t
Definition:
conf.h:620
upx_compress_config_t
Definition:
conf.h:574
upx_callback_t
Definition:
conf.h:478
Generated by
1.8.13