pylzma_encoder.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * Python Bindings for LZMA
  3. *
  4. * Copyright (c) 2004-2006 by Joachim Bauch, mail@joachim-bauch.de
  5. * 7-Zip Copyright (C) 1999-2005 Igor Pavlov
  6. * LZMA SDK Copyright (C) 1999-2005 Igor Pavlov
  7. *
  8. * This library is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU Lesser General Public
  10. * License as published by the Free Software Foundation; either
  11. * version 2.1 of the License, or (at your option) any later version.
  12. *
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Lesser General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU Lesser General Public
  19. * License along with this library; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  21. *
  22. * $Id: pylzma_encoder.h 104 2006-01-08 18:17:14Z jojo $
  23. *
  24. */
  25. #ifndef ___PYLZMA_ENCODER__H___
  26. #define ___PYLZMA_ENCODER__H___
  27. #include <7zip/7zip/Compress/LZMA/LZMAEncoder.h>
  28. namespace NCompress {
  29. namespace NLZMA {
  30. class CPYLZMAEncoder :
  31. public CEncoder
  32. {
  33. private:
  34. UINT64 progressPosValuePrev;
  35. UINT32 pos;
  36. UINT32 posState;
  37. UINT32 len;
  38. int state;
  39. public:
  40. HRESULT CodeOneBlock(UINT64 *inSize, UINT64 *outSize, INT32 *finished, bool flush);
  41. HRESULT FinishStream();
  42. };
  43. }}
  44. #endif