1370b324cSopenharmony_ci// DummyOutStream.h 2370b324cSopenharmony_ci 3370b324cSopenharmony_ci#ifndef ZIP7_INC_DUMMY_OUT_STREAM_H 4370b324cSopenharmony_ci#define ZIP7_INC_DUMMY_OUT_STREAM_H 5370b324cSopenharmony_ci 6370b324cSopenharmony_ci#include "../../../Common/MyCom.h" 7370b324cSopenharmony_ci 8370b324cSopenharmony_ci#include "../../IStream.h" 9370b324cSopenharmony_ci 10370b324cSopenharmony_ciZ7_CLASS_IMP_NOQIB_1( 11370b324cSopenharmony_ci CDummyOutStream 12370b324cSopenharmony_ci , ISequentialOutStream 13370b324cSopenharmony_ci) 14370b324cSopenharmony_ci CMyComPtr<ISequentialOutStream> _stream; 15370b324cSopenharmony_ci UInt64 _size; 16370b324cSopenharmony_cipublic: 17370b324cSopenharmony_ci void SetStream(ISequentialOutStream *outStream) { _stream = outStream; } 18370b324cSopenharmony_ci void ReleaseStream() { _stream.Release(); } 19370b324cSopenharmony_ci void Init() { _size = 0; } 20370b324cSopenharmony_ci UInt64 GetSize() const { return _size; } 21370b324cSopenharmony_ci}; 22370b324cSopenharmony_ci 23370b324cSopenharmony_ci#endif 24