OLD | NEW |
1 /* LzmaLib.h -- LZMA library interface | 1 /* LzmaLib.h -- LZMA library interface |
2 2009-04-07 : Igor Pavlov : Public domain */ | 2 2013-01-18 : Igor Pavlov : Public domain */ |
3 | 3 |
4 #ifndef __LZMA_LIB_H | 4 #ifndef __LZMA_LIB_H |
5 #define __LZMA_LIB_H | 5 #define __LZMA_LIB_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 MY_STDAPI int MY_STD_CALL | 11 #define MY_STDAPI int MY_STD_CALL |
14 | 12 |
15 #define LZMA_PROPS_SIZE 5 | 13 #define LZMA_PROPS_SIZE 5 |
16 | 14 |
17 /* | 15 /* |
18 RAM requirements for LZMA: | 16 RAM requirements for LZMA: |
19 for compression: (dictSize * 11.5 + 6 MB) + state_size | 17 for compression: (dictSize * 11.5 + 6 MB) + state_size |
20 for decompression: dictSize + state_size | 18 for decompression: dictSize + state_size |
21 state_size = (4 + (1.5 << (lc + lp))) KB | 19 state_size = (4 + (1.5 << (lc + lp))) KB |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 SZ_OK - OK | 119 SZ_OK - OK |
122 SZ_ERROR_DATA - Data error | 120 SZ_ERROR_DATA - Data error |
123 SZ_ERROR_MEM - Memory allocation arror | 121 SZ_ERROR_MEM - Memory allocation arror |
124 SZ_ERROR_UNSUPPORTED - Unsupported properties | 122 SZ_ERROR_UNSUPPORTED - Unsupported properties |
125 SZ_ERROR_INPUT_EOF - it needs more bytes in input buffer (src) | 123 SZ_ERROR_INPUT_EOF - it needs more bytes in input buffer (src) |
126 */ | 124 */ |
127 | 125 |
128 MY_STDAPI LzmaUncompress(unsigned char *dest, size_t *destLen, const unsigned ch
ar *src, SizeT *srcLen, | 126 MY_STDAPI LzmaUncompress(unsigned char *dest, size_t *destLen, const unsigned ch
ar *src, SizeT *srcLen, |
129 const unsigned char *props, size_t propsSize); | 127 const unsigned char *props, size_t propsSize); |
130 | 128 |
131 #ifdef __cplusplus | 129 EXTERN_C_END |
132 } | |
133 #endif | |
134 | 130 |
135 #endif | 131 #endif |
OLD | NEW |