mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-09 06:07:05 -06:00
4.44 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
804edc5756
commit
d9666cf046
29
CPP/7zip/Archive/Zip/ZipItemEx.h
Executable file
29
CPP/7zip/Archive/Zip/ZipItemEx.h
Executable file
@@ -0,0 +1,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
|
||||
Reference in New Issue
Block a user