Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
670 B

  1. /* Bcj2.h -- Converter for x86 code (BCJ2)
  2. 2013-01-18 : Igor Pavlov : Public domain */
  3. #ifndef __BCJ2_H
  4. #define __BCJ2_H
  5. #include "7zTypes.h"
  6. EXTERN_C_BEGIN
  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. Returns:
  15. SZ_OK
  16. SZ_ERROR_DATA - Data error
  17. */
  18. int Bcj2_Decode(
  19. const Byte *buf0, SizeT size0,
  20. const Byte *buf1, SizeT size1,
  21. const Byte *buf2, SizeT size2,
  22. const Byte *buf3, SizeT size3,
  23. Byte *outBuf, SizeT outSize);
  24. EXTERN_C_END
  25. #endif