You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
605 B
23 lines
605 B
// 7zSpecStream.cpp
|
|
|
|
#include "StdAfx.h"
|
|
|
|
#include "7zSpecStream.h"
|
|
|
|
STDMETHODIMP CSequentialInStreamSizeCount2::Read(void *data, UInt32 size, UInt32 *processedSize)
|
|
{
|
|
UInt32 realProcessedSize;
|
|
HRESULT result = _stream->Read(data, size, &realProcessedSize);
|
|
_size += realProcessedSize;
|
|
if (processedSize)
|
|
*processedSize = realProcessedSize;
|
|
return result;
|
|
}
|
|
|
|
STDMETHODIMP CSequentialInStreamSizeCount2::GetSubStreamSize(UInt64 subStream, UInt64 *value)
|
|
{
|
|
if (!_getSubStreamSize)
|
|
return E_NOTIMPL;
|
|
return _getSubStreamSize->GetSubStreamSize(subStream, value);
|
|
}
|