1// BranchX86_2.h
2
3#ifndef __BRANCHX86_2_H
4#define __BRANCHX86_2_H
5
6#include "BranchTypes.h"
7
8#define BCJ2_RESULT_OK 0
9#define BCJ2_RESULT_DATA_ERROR 1
10
11/*
12Conditions:
13  outSize <= FullOutputSize,
14  where FullOutputSize is full size of output stream of x86_2 filter.
15
16If buf0 overlaps outBuf, there are two required conditions:
17  1) (buf0 >= outBuf)
18  2) (buf0 + size0 >= outBuf + FullOutputSize).
19*/
20
21int x86_2_Decode(
22    const Byte *buf0, SizeT size0,
23    const Byte *buf1, SizeT size1,
24    const Byte *buf2, SizeT size2,
25    const Byte *buf3, SizeT size3,
26    Byte *outBuf, SizeT outSize);
27
28#endif
29