用于EagleEye3.0 规则集漏报和误报测试的示例项目,项目收集于github和gitee
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.

37 lines
710 B

5 months ago
#pragma once
#include "../CPP/7zip/IStream.h"
#include "../CPP/Common/MyCom.h"
namespace SevenZip
{
namespace intl
{
class OutStreamWrapper : public IOutStream
{
private:
long m_refCount;
CMyComPtr< IStream > m_baseStream;
public:
OutStreamWrapper( const CMyComPtr< IStream >& baseStream );
virtual ~OutStreamWrapper();
STDMETHOD(QueryInterface)( REFIID iid, void** ppvObject );
STDMETHOD_(ULONG, AddRef)();
STDMETHOD_(ULONG, Release)();
// ISequentialOutStream
STDMETHOD(Write)( const void* data, UInt32 size, UInt32* processedSize );
// IOutStream
STDMETHOD(Seek)( Int64 offset, UInt32 seekOrigin, UInt64* newPosition );
STDMETHOD(SetSize)( UInt64 newSize );
};
}
}