Bcj2.h 668 B

12345678910111213141516171819202122232425262728293031
  1. /* Bcj2.h -- Converter for x86 code (BCJ2)
  2. 2008-10-04 : Igor Pavlov : Public domain */
  3. #ifndef __BCJ2_H
  4. #define __BCJ2_H
  5. #include "Types.h"
  6. /*
  7. Conditions:
  8. outSize <= FullOutputSize,
  9. where FullOutputSize is full size of output stream of x86_2 filter.
  10. If buf0 overlaps outBuf, there are two required conditions:
  11. 1) (buf0 >= outBuf)
  12. 2) (buf0 + size0 >= outBuf + FullOutputSize).
  13. Returns:
  14. SZ_OK
  15. SZ_ERROR_DATA - Data error
  16. */
  17. int Bcj2_Decode(
  18. const Byte *buf0, SizeT size0,
  19. const Byte *buf1, SizeT size1,
  20. const Byte *buf2, SizeT size2,
  21. const Byte *buf3, SizeT size3,
  22. Byte *outBuf, SizeT outSize);
  23. #endif