diff options
Diffstat (limited to 'CPP/7zip/Archive/Wim/WimIn.h')
-rwxr-xr-x | CPP/7zip/Archive/Wim/WimIn.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/CPP/7zip/Archive/Wim/WimIn.h b/CPP/7zip/Archive/Wim/WimIn.h index bc74f61b..467b99ae 100755 --- a/CPP/7zip/Archive/Wim/WimIn.h +++ b/CPP/7zip/Archive/Wim/WimIn.h @@ -107,6 +107,23 @@ struct CDatabase { CRecordVector<CStreamInfo> Streams; CObjectVector<CItem> Items; + + UInt64 GetUnpackSize() const + { + UInt64 res = 0; + for (int i = 0; i < Streams.Size(); i++) + res += Streams[i].Resource.UnpackSize; + return res; + } + + UInt64 GetPackSize() const + { + UInt64 res = 0; + for (int i = 0; i < Streams.Size(); i++) + res += Streams[i].Resource.PackSize; + return res; + } + void Clear() { Streams.Clear(); |