Professional Documents
Culture Documents
(5 bytes) format
Description
lc, lp and pb in encoded form.
dictSize (little endian).
/*
LzmaCompress
-----------outPropsSize In: the pointer to the size of outProps buffer; *outPropsSize = LZMA_PROPS
_SIZE = 5.
Out: the pointer to the size of written properties in outProps buffer; *out
PropsSize = LZMA_PROPS_SIZE = 5.
LZMA Encoder will use defult values for any parameter, if it is
-1 for any from: level, loc, lp, pb, fb, numThreads
0 for dictSize
level - compression level: 0 <= level <= 9;
level dictSize algo
0:
16 KB 0
1:
64 KB 0
2: 256 KB 0
3:
1 MB 0
4:
4 MB 0
5:
16 MB 1
6:
32 MB 1
7+: 64 MB 1
fb
32
32
32
32
32
32
32
64
src
- input data
srcLen - input data size
Out:
destLen - processed output size
srcLen - processed input size
Returns:
SZ_OK
- OK
SZ_ERROR_DATA
- Data error
SZ_ERROR_MEM
- Memory allocation arror
SZ_ERROR_UNSUPPORTED - Unsupported properties
SZ_ERROR_INPUT_EOF - it needs more bytes in input buffer (src)
*/
MY_STDAPI LzmaUncompress(unsigned char *dest, size_t *destLen, const unsigned ch
ar *src, SizeT *srcLen,
const unsigned char *props, size_t propsSize);
#ifdef __cplusplus
}
#endif
#endif