Subversion Repositories spk

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 cycrow 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
#ifdef __cplusplus
10
extern "C" {
11
#endif
12
 
13
#include "Types.h"
14
 
15
/*
16
Lzma86_GetUnpackSize:
17
  In:
18
    src      - input data
19
    srcLen   - input data size
20
  Out:
21
    unpackSize - size of uncompressed stream
22
  Return code:
23
    SZ_OK               - OK
24
    SZ_ERROR_INPUT_EOF  - Error in headers
25
*/
26
 
27
SRes Lzma86_GetUnpackSize(const Byte *src, SizeT srcLen, UInt64 *unpackSize);
28
 
29
/*
30
Lzma86_Decode:
31
  In:
32
    dest     - output data
33
    destLen  - output data size
34
    src      - input data
35
    srcLen   - input data size
36
  Out:
37
    destLen  - processed output size
38
    srcLen   - processed input size
39
  Return code:
40
    SZ_OK           - OK
41
    SZ_ERROR_DATA  - Data error
42
    SZ_ERROR_MEM   - Memory allocation error
43
    SZ_ERROR_UNSUPPORTED - unsupported file
44
    SZ_ERROR_INPUT_EOF - it needs more bytes in input buffer
45
*/
46
 
47
SRes Lzma86_Decode(Byte *dest, SizeT *destLen, const Byte *src, SizeT *srcLen);
48
 
49
#ifdef __cplusplus
50
}
51
#endif
52
 
53
#endif