Mercurial > vba-linux
diff src/win32/7zip/7z/CPP/7zip/Archive/Zip/ZipItemEx.h @ 1:f9f4f1b99eed
importing src directory
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:31:27 -0600 |
parents | |
children |
line wrap: on
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/win32/7zip/7z/CPP/7zip/Archive/Zip/ZipItemEx.h Sat Mar 03 10:31:27 2012 -0600 1.3 @@ -0,0 +1,34 @@ 1.4 +// Archive/ZipItemEx.h 1.5 + 1.6 +#ifndef __ARCHIVE_ZIP_ITEMEX_H 1.7 +#define __ARCHIVE_ZIP_ITEMEX_H 1.8 + 1.9 +#include "ZipHeader.h" 1.10 +#include "ZipItem.h" 1.11 + 1.12 +namespace NArchive { 1.13 +namespace NZip { 1.14 + 1.15 +class CItemEx: public CItem 1.16 +{ 1.17 +public: 1.18 + UInt32 FileHeaderWithNameSize; 1.19 + UInt16 LocalExtraSize; 1.20 + 1.21 + UInt64 GetLocalFullSize() const 1.22 + { return FileHeaderWithNameSize + LocalExtraSize + PackSize + 1.23 + (HasDescriptor() ? NFileHeader::kDataDescriptorSize : 0); }; 1.24 + /* 1.25 + UInt64 GetLocalFullSize(bool isZip64) const 1.26 + { return FileHeaderWithNameSize + LocalExtraSize + PackSize + 1.27 + (HasDescriptor() ? (isZip64 ? NFileHeader::kDataDescriptor64Size : NFileHeader::kDataDescriptorSize) : 0); }; 1.28 + */ 1.29 + UInt64 GetLocalExtraPosition() const 1.30 + { return LocalHeaderPosition + FileHeaderWithNameSize; }; 1.31 + UInt64 GetDataPosition() const 1.32 + { return GetLocalExtraPosition() + LocalExtraSize; }; 1.33 +}; 1.34 + 1.35 +}} 1.36 + 1.37 +#endif