mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-10 20:07:05 -06:00
3.13
This commit is contained in:
47
7zip/Archive/Zip/ZipItemEx.h
Executable file
47
7zip/Archive/Zip/ZipItemEx.h
Executable file
@@ -0,0 +1,47 @@
|
||||
// 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"
|
||||
|
||||
namespace NArchive {
|
||||
namespace NZip {
|
||||
|
||||
class CItemEx: public CItem
|
||||
{
|
||||
public:
|
||||
UINT16 FileHeaderWithNameSize;
|
||||
UINT64 CentralExtraPosition;
|
||||
|
||||
UINT32 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
|
||||
{ return LocalHeaderPosition + FileHeaderWithNameSize; };
|
||||
|
||||
UINT64 GetDataPosition() const
|
||||
{ return GetLocalExtraPosition() + LocalExtraSize; };
|
||||
};
|
||||
|
||||
}}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user