This commit is contained in:
Igor Pavlov
2005-05-30 00:00:00 +00:00
committed by Kornel Lesiński
parent 8c1b5c7b7e
commit 3c510ba80b
926 changed files with 40559 additions and 23519 deletions

View File

@@ -1,12 +1,8 @@
// Archive/ZipItemEx.h
#pragma once
#ifndef __ARCHIVE_ZIP_ITEMEX_H
#define __ARCHIVE_ZIP_ITEMEX_H
#include "Common/Vector.h"
#include "ZipHeader.h"
#include "ZipItem.h"
@@ -16,32 +12,17 @@ namespace NZip {
class CItemEx: public CItem
{
public:
UINT16 FileHeaderWithNameSize;
UINT64 CentralExtraPosition;
UInt32 FileHeaderWithNameSize;
UINT32 GetLocalFullSize() const
UInt64 GetLocalFullSize() const
{ return FileHeaderWithNameSize + LocalExtraSize + PackSize +
(HasDescriptor() ? sizeof(NFileHeader::CDataDescriptor) : 0); };
UINT32 GetCentralExtraPlusCommentSize() const
{ return CentralExtraSize + CommentSize; };
UINT64 GetCommentPosition() const
{ return CentralExtraPosition + CentralExtraSize; };
bool IsCommented() const
{ return CommentSize != 0; };
UINT64 GetLocalExtraPosition() const
(HasDescriptor() ? NFileHeader::kDataDescriptorSize : 0); };
UInt64 GetLocalExtraPosition() const
{ return LocalHeaderPosition + FileHeaderWithNameSize; };
UINT64 GetDataPosition() const
UInt64 GetDataPosition() const
{ return GetLocalExtraPosition() + LocalExtraSize; };
};
}}
#endif