view 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 source
1 // Archive/ZipItemEx.h
3 #ifndef __ARCHIVE_ZIP_ITEMEX_H
4 #define __ARCHIVE_ZIP_ITEMEX_H
6 #include "ZipHeader.h"
7 #include "ZipItem.h"
9 namespace NArchive {
10 namespace NZip {
12 class CItemEx: public CItem
13 {
14 public:
15 UInt32 FileHeaderWithNameSize;
16 UInt16 LocalExtraSize;
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 };
32 }}
34 #endif