52 lines
1.4 KiB
C++
52 lines
1.4 KiB
C++
/*
|
|
* Python Bindings for LZMA
|
|
*
|
|
* Copyright (c) 2004-2006 by Joachim Bauch, mail@joachim-bauch.de
|
|
* 7-Zip Copyright (C) 1999-2005 Igor Pavlov
|
|
* LZMA SDK Copyright (C) 1999-2005 Igor Pavlov
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library; if not, write to the Free Software
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
*
|
|
* $Id: pylzma_encoder.h 104 2006-01-08 18:17:14Z jojo $
|
|
*
|
|
*/
|
|
|
|
#ifndef ___PYLZMA_ENCODER__H___
|
|
#define ___PYLZMA_ENCODER__H___
|
|
|
|
#include <7zip/7zip/Compress/LZMA/LZMAEncoder.h>
|
|
|
|
namespace NCompress {
|
|
namespace NLZMA {
|
|
|
|
class CPYLZMAEncoder :
|
|
public CEncoder
|
|
{
|
|
private:
|
|
UINT64 progressPosValuePrev;
|
|
UINT32 pos;
|
|
UINT32 posState;
|
|
UINT32 len;
|
|
int state;
|
|
|
|
public:
|
|
HRESULT CodeOneBlock(UINT64 *inSize, UINT64 *outSize, INT32 *finished, bool flush);
|
|
HRESULT FinishStream();
|
|
};
|
|
|
|
}}
|
|
|
|
#endif
|