OLD | NEW |
| (Empty) |
1 /* Lzma86Dec.h -- LZMA + x86 (BCJ) Filter Decoder | |
2 2008-08-05 | |
3 Igor Pavlov | |
4 Public domain */ | |
5 | |
6 #ifndef __LZMA86DEC_H | |
7 #define __LZMA86DEC_H | |
8 | |
9 #include "../Types.h" | |
10 | |
11 /* | |
12 Lzma86_GetUnpackSize: | |
13 In: | |
14 src - input data | |
15 srcLen - input data size | |
16 Out: | |
17 unpackSize - size of uncompressed stream | |
18 Return code: | |
19 SZ_OK - OK | |
20 SZ_ERROR_INPUT_EOF - Error in headers | |
21 */ | |
22 | |
23 SRes Lzma86_GetUnpackSize(const Byte *src, SizeT srcLen, UInt64 *unpackSize); | |
24 | |
25 /* | |
26 Lzma86_Decode: | |
27 In: | |
28 dest - output data | |
29 destLen - output data size | |
30 src - input data | |
31 srcLen - input data size | |
32 Out: | |
33 destLen - processed output size | |
34 srcLen - processed input size | |
35 Return code: | |
36 SZ_OK - OK | |
37 SZ_ERROR_DATA - Data error | |
38 SZ_ERROR_MEM - Memory allocation error | |
39 SZ_ERROR_UNSUPPORTED - unsupported file | |
40 SZ_ERROR_INPUT_EOF - it needs more bytes in input buffer | |
41 */ | |
42 | |
43 SRes Lzma86_Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen); | |
44 | |
45 #endif | |
OLD | NEW |