This commit is contained in:
Igor Pavlov
2003-12-11 00:00:00 +00:00
committed by Kornel Lesiński
commit 8c1b5c7b7e
982 changed files with 118799 additions and 0 deletions

26
7zip/Common/LimitedStreams.h Executable file
View File

@@ -0,0 +1,26 @@
// LimitedStreams.h
#pragma once
#ifndef __LIMITEDSTREAMS_H
#define __LIMITEDSTREAMS_H
#include "../../Common/MyCom.h"
#include "../IStream.h"
class CLimitedSequentialInStream:
public ISequentialInStream,
public CMyUnknownImp
{
UINT64 _size;
CMyComPtr<ISequentialInStream> _stream;
public:
void Init(ISequentialInStream *stream, UINT64 streamSize);
MY_UNKNOWN_IMP
STDMETHOD(Read)(void *data, UINT32 size, UINT32 *processedSize);
STDMETHOD(ReadPart)(void *data, UINT32 size, UINT32 *processedSize);
};
#endif