3 #ifndef __LzmaRamDecode_h
4 #define __LzmaRamDecode_h
9 LzmaRamGetUncompressedSize:
12 inSize - input data size
14 outSize - uncompressed size
20 int LzmaRamGetUncompressedSize(
21 const unsigned char *inBuffer,
30 inSize - input data size
31 outBuffer - output data
33 allocFunc - alloc function (can be malloc)
34 freeFunc - free function (can be free)
36 outSizeProcessed - processed size
39 1 - Error in headers / data stream
40 2 - Memory allocating error
42 Memory requirements depend from properties of LZMA stream.
43 With default lzma settings it's about 16 KB.
46 int LzmaRamDecompress(
47 const unsigned char *inBuffer,
49 unsigned char *outBuffer,
51 size_t *outSizeProcessed,
52 void * (*allocFunc)(size_t size),
53 void (*freeFunc)(void *));