LimitedStreams.h (p7zip_15.14.1_src_all) | : | LimitedStreams.h (p7zip_16.02_src_all) | ||
---|---|---|---|---|
skipping to change at line 33 | skipping to change at line 33 | |||
{ | { | |||
_size = streamSize; | _size = streamSize; | |||
_pos = 0; | _pos = 0; | |||
_wasFinished = false; | _wasFinished = false; | |||
} | } | |||
MY_UNKNOWN_IMP1(ISequentialInStream) | MY_UNKNOWN_IMP1(ISequentialInStream) | |||
STDMETHOD(Read)(void *data, UInt32 size, UInt32 *processedSize); | STDMETHOD(Read)(void *data, UInt32 size, UInt32 *processedSize); | |||
UInt64 GetSize() const { return _pos; } | UInt64 GetSize() const { return _pos; } | |||
UInt64 GetRem() const { return _size - _pos; } | ||||
bool WasFinished() const { return _wasFinished; } | bool WasFinished() const { return _wasFinished; } | |||
}; | }; | |||
class CLimitedInStream: | class CLimitedInStream: | |||
public IInStream, | public IInStream, | |||
public CMyUnknownImp | public CMyUnknownImp | |||
{ | { | |||
CMyComPtr<IInStream> _stream; | CMyComPtr<IInStream> _stream; | |||
UInt64 _virtPos; | UInt64 _virtPos; | |||
UInt64 _physPos; | UInt64 _physPos; | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 1 lines changed or added |