System.Zip.TZipHeader

提供: RAD Studio API Documentation
移動先: 案内検索

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);
    property UTF8Support: Boolean read GetUTF8Support write SetUTF8Support;
  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);
    __property bool UTF8Support = {read=GetUTF8Support, write=SetUTF8Support};
};

プロパティ

種類 可視性 ソース ユニット
record
struct
public
System.Zip.pas
System.Zip.hpp
System.Zip System.Zip


説明

TZipHeader には、.zip アーカイブ内のファイルに関する情報が含まれます。


TZipHeader は、.zip アーカイブのファイルに関する情報を保持するために TZipFile で使われます。

関連項目