OLD | NEW |
1 /* LzmaDec.h -- LZMA Decoder | 1 /* LzmaDec.h -- LZMA Decoder |
2 2009-02-07 : Igor Pavlov : Public domain */ | 2 2013-01-18 : Igor Pavlov : Public domain */ |
3 | 3 |
4 #ifndef __LZMA_DEC_H | 4 #ifndef __LZMA_DEC_H |
5 #define __LZMA_DEC_H | 5 #define __LZMA_DEC_H |
6 | 6 |
7 #include "Types.h" | 7 #include "7zTypes.h" |
8 | 8 |
9 #ifdef __cplusplus | 9 EXTERN_C_BEGIN |
10 extern "C" { | |
11 #endif | |
12 | 10 |
13 /* #define _LZMA_PROB32 */ | 11 /* #define _LZMA_PROB32 */ |
14 /* _LZMA_PROB32 can increase the speed on some CPUs, | 12 /* _LZMA_PROB32 can increase the speed on some CPUs, |
15 but memory usage for CLzmaDec::probs will be doubled in that case */ | 13 but memory usage for CLzmaDec::probs will be doubled in that case */ |
16 | 14 |
17 #ifdef _LZMA_PROB32 | 15 #ifdef _LZMA_PROB32 |
18 #define CLzmaProb UInt32 | 16 #define CLzmaProb UInt32 |
19 #else | 17 #else |
20 #define CLzmaProb UInt16 | 18 #define CLzmaProb UInt16 |
21 #endif | 19 #endif |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 SZ_ERROR_DATA - Data error | 215 SZ_ERROR_DATA - Data error |
218 SZ_ERROR_MEM - Memory allocation error | 216 SZ_ERROR_MEM - Memory allocation error |
219 SZ_ERROR_UNSUPPORTED - Unsupported properties | 217 SZ_ERROR_UNSUPPORTED - Unsupported properties |
220 SZ_ERROR_INPUT_EOF - It needs more bytes in input buffer (src). | 218 SZ_ERROR_INPUT_EOF - It needs more bytes in input buffer (src). |
221 */ | 219 */ |
222 | 220 |
223 SRes LzmaDecode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, | 221 SRes LzmaDecode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen, |
224 const Byte *propData, unsigned propSize, ELzmaFinishMode finishMode, | 222 const Byte *propData, unsigned propSize, ELzmaFinishMode finishMode, |
225 ELzmaStatus *status, ISzAlloc *alloc); | 223 ELzmaStatus *status, ISzAlloc *alloc); |
226 | 224 |
227 #ifdef __cplusplus | 225 EXTERN_C_END |
228 } | |
229 #endif | |
230 | 226 |
231 #endif | 227 #endif |
OLD | NEW |