最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
michael_wp原创:用.net实现zip----4-2
时间:2022-07-02 11:37:29 编辑:袖梨 来源:一聚教程网
/// 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;
[StructLayout(LayoutKind.Sequential)]
internal struct ZipFileInfo {
///
public UInt32 EntryCount;
///
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
}
///
[StructLayout(LayoutKind.Sequential)]
internal struct ZipDateTimeInfo {
///
public UInt32 Seconds;