michael_wp原创:用.net实现zip----4-2

作者:袖梨 2022-07-02
/// Global information about the zip file.
    [StructLayout(LayoutKind.Sequential)]
    internal struct ZipFileInfo {
        /// The number of entries in the directory.
        public UInt32 EntryCount;
        /// Length of zip file comment in bytes (8 bit characters).
        public UInt32 CommentLength;
    }
    [StructLayout(LayoutKind.Sequential)]
    internal struct ZipFileEntryInfo {
        public ZipDateTimeInfo DateTime;
        public UInt32 DosDate;
        public UInt32 InternalFileAttributes; // 2 bytes
        public UInt32 ExternalFileAttributes; // 4 bytes
    }
    /// Custom ZipLib date time structure.
    [StructLayout(LayoutKind.Sequential)]
    internal struct ZipDateTimeInfo {
        /// Seconds after the minute - [0,59]
        public UInt32 Seconds;

相关文章

精彩推荐