当前位置:编程学习 > C#/ASP.NET >>

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

/// <summary>Global information about the zip file.</summary>
    [StructLayout(LayoutKind.Sequential)]
    internal struct ZipFileInfo {
        /// <summary>The number of entries in the directory.</summary>
        public UInt32 EntryCount;
        /// <summary>Length of zip file comment in bytes (8 bit characters).</summary>
        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
    }
    /// <summary>Custom ZipLib date time structure.</summary>
    [StructLayout(LayoutKind.Sequential)]
    internal struct ZipDateTimeInfo {
        /// <summary>Seconds after the minute - [0,59]</summary>
        public UInt32 Seconds;
补充:asp.net教程,Win开发 
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,