mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-13 20:11:35 -06:00
3.13
This commit is contained in:
26
7zip/Common/LimitedStreams.h
Executable file
26
7zip/Common/LimitedStreams.h
Executable 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
|
||||
Reference in New Issue
Block a user