forked from killeven/DllToShellCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaplib.h
More file actions
65 lines (49 loc) · 1.82 KB
/
aplib.h
File metadata and controls
65 lines (49 loc) · 1.82 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
53
54
55
56
57
58
59
60
61
62
63
64
65
/*
* aPLib compression library - the smaller the better :)
*
* COFF 64-bit format header file
*
* Copyright (c) 1998-2014 Joergen Ibsen
* All Rights Reserved
*
* http://www.ibsensoftware.com/
*/
#ifndef APLIB_H_INCLUDED
#define APLIB_H_INCLUDED
#ifdef __cplusplus
extern "C" {
#endif
#ifndef APLIB_ERROR
# define APLIB_ERROR ((unsigned int) (-1))
#endif
unsigned int aP_pack(const void *source,
void *destination,
unsigned int length,
void *workmem,
int (*callback)(unsigned int, unsigned int, unsigned int, void *),
void *cbparam);
unsigned int aP_workmem_size(unsigned int inputsize);
unsigned int aP_max_packed_size(unsigned int inputsize);
unsigned int aP_depack_asm(const void *source, void *destination);
unsigned int aP_depack_asm_fast(const void *source, void *destination);
unsigned int aP_depack_asm_safe(const void *source,
unsigned int srclen,
void *destination,
unsigned int dstlen);
unsigned int aP_crc32(const void *source, unsigned int length);
unsigned int aPsafe_pack(const void *source,
void *destination,
unsigned int length,
void *workmem,
int (*callback)(unsigned int, unsigned int, unsigned int, void *),
void *cbparam);
unsigned int aPsafe_check(const void *source);
unsigned int aPsafe_get_orig_size(const void *source);
unsigned int aPsafe_depack(const void *source,
unsigned int srclen,
void *destination,
unsigned int dstlen);
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /* APLIB_H_INCLUDED */