Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ZipItemEx.h « Zip « Archive « 7zip - github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3cacc0e7c3182b71b53f4151cb3be1322c206d96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Archive/ZipItemEx.h

#ifndef __ARCHIVE_ZIP_ITEMEX_H
#define __ARCHIVE_ZIP_ITEMEX_H

#include "ZipHeader.h"
#include "ZipItem.h"

namespace NArchive {
namespace NZip {
  
class CItemEx: public CItem
{
public:
  UInt32 FileHeaderWithNameSize;
  UInt16 LocalExtraSize;
  
  UInt64 GetLocalFullSize() const 
    { return FileHeaderWithNameSize + LocalExtraSize + PackSize + 
      (HasDescriptor() ? NFileHeader::kDataDescriptorSize : 0); };
  UInt64 GetLocalExtraPosition() const 
    { return LocalHeaderPosition + FileHeaderWithNameSize; };
  UInt64 GetDataPosition() const 
    { return GetLocalExtraPosition() + LocalExtraSize; };
};

}}

#endif