Mercurial > vba-linux
comparison 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 |
comparison
equal
deleted
inserted
replaced
0:8ced16adf2e1 | 1:f9f4f1b99eed |
---|---|
1 // Archive/ZipItemEx.h | |
2 | |
3 #ifndef __ARCHIVE_ZIP_ITEMEX_H | |
4 #define __ARCHIVE_ZIP_ITEMEX_H | |
5 | |
6 #include "ZipHeader.h" | |
7 #include "ZipItem.h" | |
8 | |
9 namespace NArchive { | |
10 namespace NZip { | |
11 | |
12 class CItemEx: public CItem | |
13 { | |
14 public: | |
15 UInt32 FileHeaderWithNameSize; | |
16 UInt16 LocalExtraSize; | |
17 | |
18 UInt64 GetLocalFullSize() const | |
19 { return FileHeaderWithNameSize + LocalExtraSize + PackSize + | |
20 (HasDescriptor() ? NFileHeader::kDataDescriptorSize : 0); }; | |
21 /* | |
22 UInt64 GetLocalFullSize(bool isZip64) const | |
23 { return FileHeaderWithNameSize + LocalExtraSize + PackSize + | |
24 (HasDescriptor() ? (isZip64 ? NFileHeader::kDataDescriptor64Size : NFileHeader::kDataDescriptorSize) : 0); }; | |
25 */ | |
26 UInt64 GetLocalExtraPosition() const | |
27 { return LocalHeaderPosition + FileHeaderWithNameSize; }; | |
28 UInt64 GetDataPosition() const | |
29 { return GetLocalExtraPosition() + LocalExtraSize; }; | |
30 }; | |
31 | |
32 }} | |
33 | |
34 #endif |