Update to 7-Zip Version 21.02

This commit is contained in:
Tino Reichardt
2021-05-13 16:39:14 +02:00
parent 3724ecfedc
commit 48fa49f76c
620 changed files with 35032 additions and 10925 deletions

View File

@@ -38,8 +38,16 @@ public:
CInBufferBase() throw();
UInt64 GetStreamSize() const { return _processedSize + (_buf - _bufBase); }
UInt64 GetProcessedSize() const { return _processedSize + NumExtraBytes + (_buf - _bufBase); }
// the size of portion of data in real stream that was already read from this object
// it doesn't include unused data in buffer
// it doesn't include virtual Extra bytes after the end of real stream data
UInt64 GetStreamSize() const { return _processedSize + (size_t)(_buf - _bufBase); }
// the size of virtual data that was read from this object
// it doesn't include unused data in buffers
// it includes any virtual Extra bytes after the end of real data
UInt64 GetProcessedSize() const { return _processedSize + NumExtraBytes + (size_t)(_buf - _bufBase); }
bool WasFinished() const { return _wasFinished; }
void SetStream(ISequentialInStream *stream) { _stream = stream; }
@@ -68,6 +76,15 @@ public:
b = *_buf++;
return true;
}
MY_FORCE_INLINE
bool ReadByte_FromBuf(Byte &b)
{
if (_buf >= _bufLim)
return false;
b = *_buf++;
return true;
}
MY_FORCE_INLINE
Byte ReadByte()