Xamarin Public Jenkins (auto-signing) 6bdd276d05 Imported Upstream version 5.0.0.42
Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
2017-04-10 11:41:01 +00:00

56 lines
2.7 KiB
C#
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// FileInfo.cs created with MonoDevelop
// User: alan at 14:47 13/10/2008
//
// To change standard headers go to Edit->Preferences->Coding->Standard Headers
//
using System;
using System.Runtime.InteropServices;
namespace zipsharp
{
[StructLayout (LayoutKind.Sequential)]
struct UnzipFileInfo32
{
public uint version; /* version made by 2 bytes */
public uint version_needed; /* version needed to extract 2 bytes */
public uint flag; /* general purpose bit flag 2 bytes */
public uint compression_method; /* compression method 2 bytes */
public uint dosDate; /* last mod file date in Dos fmt 4 bytes */
public uint crc; /* crc-32 4 bytes */
public uint compressed_size; /* compressed size 4 bytes */
public uint uncompressed_size; /* uncompressed size 4 bytes */
public uint size_filename; /* filename length 2 bytes */
public uint size_file_extra; /* extra field length 2 bytes */
public uint size_file_comment; /* file comment length 2 bytes */
public uint disk_num_start; /* disk number start 2 bytes */
public uint internal_fa; /* internal file attributes 2 bytes */
public uint external_fa; /* external file attributes 4 bytes */
ZipTime tmu_date;
}
[StructLayout (LayoutKind.Sequential)]
struct UnzipFileInfo64
{
public ulong version; /* version made by 2 bytes */
public ulong version_needed; /* version needed to extract 2 bytes */
public ulong flag; /* general purpose bit flag 2 bytes */
public ulong compression_method; /* compression method 2 bytes */
public ulong dosDate; /* last mod file date in Dos fmt 4 bytes */
public ulong crc; /* crc-32 4 bytes */
public ulong compressed_size; /* compressed size 4 bytes */
public ulong uncompressed_size; /* uncompressed size 4 bytes */
public ulong size_filename; /* filename length 2 bytes */
public ulong size_file_extra; /* extra field length 2 bytes */
public ulong size_file_comment; /* file comment length 2 bytes */
public ulong disk_num_start; /* disk number start 2 bytes */
public ulong internal_fa; /* internal file attributes 2 bytes */
public ulong external_fa; /* external file attributes 4 bytes */
ZipTime tmu_date;
}
}