System.Zip.TZipHeader

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

Delphi

  TZipHeader = packed record
    MadeByVersion:      UInt16; // Start of Central Header
    RequiredVersion:    UInt16; // Start of Local Header
    Flag:               UInt16;
    CompressionMethod:  UInt16;
    ModifiedDateTime:   UInt32;
    CRC32:              UInt32;
    CompressedSize:     UInt32;
    UncompressedSize:   UInt32;
    FileNameLength:     UInt16;
    ExtraFieldLength:   UInt16; // End of Local Header
    FileCommentLength:  UInt16;
    DiskNumberStart:    UInt16;
    InternalAttributes: UInt16;
    ExternalAttributes: UInt32;
    LocalHeaderOffset:  UInt32; // End of Central Header
    FileName: TBytes;
    ExtraField: TBytes;
    FileComment: TBytes;
    function GetUTF8Support: Boolean;
    procedure SetUTF8Support(value: Boolean);
    function GetUncompressedSize64: UInt64;
    procedure SetUncompressedSize64(Value: UInt64);
    function GetCompressedSize64: UInt64;
    procedure SetCompressedSize64(Value: UInt64);
    function GetLocalHeaderOffset64: UInt64;
    procedure SetLocalHeaderOffset64(Value: UInt64);
    property UTF8Support: Boolean read GetUTF8Support write SetUTF8Support;
    property UncompressedSize64: UInt64 read GetUncompressedSize64 write SetUncompressedSize64;
    property CompressedSize64: UInt64 read GetCompressedSize64 write SetCompressedSize64;
    property LocalHeaderOffset64: UInt64 read GetLocalHeaderOffset64 write SetLocalHeaderOffset64;
  end;

C++

struct DECLSPEC_DRECORD TZipHeader
{
public:
    System::Word MadeByVersion;
    System::Word RequiredVersion;
    System::Word Flag;
    System::Word CompressionMethod;
    unsigned ModifiedDateTime;
    unsigned CRC32;
    unsigned CompressedSize;
    unsigned UncompressedSize;
    System::Word FileNameLength;
    System::Word ExtraFieldLength;
    System::Word FileCommentLength;
    System::Word DiskNumberStart;
    System::Word InternalAttributes;
    unsigned ExternalAttributes;
    unsigned LocalHeaderOffset;
#ifndef _WIN64
    System::DynamicArray<System::Byte> FileName;
    System::DynamicArray<System::Byte> ExtraField;
    System::DynamicArray<System::Byte> FileComment;
#else /* _WIN64 */
    System::TArray__1<System::Byte> FileName;
    System::TArray__1<System::Byte> ExtraField;
    System::TArray__1<System::Byte> FileComment;
#endif /* _WIN64 */
    bool __fastcall GetUTF8Support();
    void __fastcall SetUTF8Support(bool value);
    unsigned __int64 __fastcall GetUncompressedSize64();
    void __fastcall SetUncompressedSize64(unsigned __int64 Value);
    unsigned __int64 __fastcall GetCompressedSize64();
    void __fastcall SetCompressedSize64(unsigned __int64 Value);
    unsigned __int64 __fastcall GetLocalHeaderOffset64();
    void __fastcall SetLocalHeaderOffset64(unsigned __int64 Value);
    __property bool UTF8Support = {read=GetUTF8Support, write=SetUTF8Support};
    __property unsigned __int64 UncompressedSize64 = {read=GetUncompressedSize64, write=SetUncompressedSize64};
    __property unsigned __int64 CompressedSize64 = {read=GetCompressedSize64, write=SetCompressedSize64};
    __property unsigned __int64 LocalHeaderOffset64 = {read=GetLocalHeaderOffset64, write=SetLocalHeaderOffset64};
};

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
record
struct
public
System.Zip.pas
System.Zip.hpp
System.Zip System.Zip


Beschreibung

TZipHeader enthält Informationen über eine Datei in einem ZIP-Archiv.

TZipHeader wird von TZipFile für die Aufnahme von Informationen über eine Datei in einem ZIP-Archiv verwendet.

Siehe auch