mirror of
https://github.com/aaru-dps/Aaru.Compression.Native.git
synced 2025-12-16 19:24:31 +00:00
Update to lzma 23.01.
This commit is contained in:
27
3rdparty/lzma/CPP/7zip/Compress/LzmaEncoder.h
vendored
27
3rdparty/lzma/CPP/7zip/Compress/LzmaEncoder.h
vendored
@@ -1,7 +1,7 @@
|
||||
// LzmaEncoder.h
|
||||
|
||||
#ifndef __LZMA_ENCODER_H
|
||||
#define __LZMA_ENCODER_H
|
||||
#ifndef ZIP7_INC_LZMA_ENCODER_H
|
||||
#define ZIP7_INC_LZMA_ENCODER_H
|
||||
|
||||
#include "../../../C/LzmaEnc.h"
|
||||
|
||||
@@ -12,30 +12,29 @@
|
||||
namespace NCompress {
|
||||
namespace NLzma {
|
||||
|
||||
class CEncoder:
|
||||
class CEncoder Z7_final:
|
||||
public ICompressCoder,
|
||||
public ICompressSetCoderProperties,
|
||||
public ICompressWriteCoderProperties,
|
||||
public ICompressSetCoderPropertiesOpt,
|
||||
public CMyUnknownImp
|
||||
{
|
||||
CLzmaEncHandle _encoder;
|
||||
UInt64 _inputProcessed;
|
||||
public:
|
||||
MY_UNKNOWN_IMP4(
|
||||
Z7_COM_UNKNOWN_IMP_4(
|
||||
ICompressCoder,
|
||||
ICompressSetCoderProperties,
|
||||
ICompressWriteCoderProperties,
|
||||
ICompressSetCoderPropertiesOpt)
|
||||
|
||||
STDMETHOD(Code)(ISequentialInStream *inStream, ISequentialOutStream *outStream,
|
||||
const UInt64 *inSize, const UInt64 *outSize, ICompressProgressInfo *progress);
|
||||
STDMETHOD(SetCoderProperties)(const PROPID *propIDs, const PROPVARIANT *props, UInt32 numProps);
|
||||
STDMETHOD(WriteCoderProperties)(ISequentialOutStream *outStream);
|
||||
STDMETHOD(SetCoderPropertiesOpt)(const PROPID *propIDs, const PROPVARIANT *props, UInt32 numProps);
|
||||
Z7_IFACE_COM7_IMP(ICompressCoder)
|
||||
public:
|
||||
Z7_IFACE_COM7_IMP(ICompressSetCoderProperties)
|
||||
Z7_IFACE_COM7_IMP(ICompressWriteCoderProperties)
|
||||
Z7_IFACE_COM7_IMP(ICompressSetCoderPropertiesOpt)
|
||||
|
||||
CLzmaEncHandle _encoder;
|
||||
UInt64 _inputProcessed;
|
||||
|
||||
CEncoder();
|
||||
virtual ~CEncoder();
|
||||
~CEncoder();
|
||||
|
||||
UInt64 GetInputProcessedSize() const { return _inputProcessed; }
|
||||
bool IsWriteEndMark() const { return LzmaEnc_IsWriteEndMark(_encoder) != 0; }
|
||||
|
||||
Reference in New Issue
Block a user