BranchX86_2.h 606 B

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