Imported Upstream version 5.0.0.42

Former-commit-id: fd56571888259555122d8a0f58c68838229cea2b
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-04-10 11:41:01 +00:00
parent 1190d13a04
commit 6bdd276d05
19939 changed files with 3099680 additions and 93811 deletions

View File

@ -10,103 +10,46 @@ using System.Runtime.InteropServices;
namespace zipsharp
{
[StructLayout (LayoutKind.Sequential)]
struct UnzipFileInfo
struct UnzipFileInfo32
{
IntPtr version; /* version made by 2 bytes */
IntPtr version_needed; /* version needed to extract 2 bytes */
IntPtr flag; /* general purpose bit flag 2 bytes */
IntPtr compression_method; /* compression method 2 bytes */
IntPtr dosDate; /* last mod file date in Dos fmt 4 bytes */
IntPtr crc; /* crc-32 4 bytes */
IntPtr compressed_size; /* compressed size 4 bytes */
IntPtr uncompressed_size; /* uncompressed size 4 bytes */
IntPtr size_filename; /* filename length 2 bytes */
IntPtr size_file_extra; /* extra field length 2 bytes */
IntPtr size_file_comment; /* file comment length 2 bytes */
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 */
IntPtr disk_num_start; /* disk number start 2 bytes */
IntPtr internal_fa; /* internal file attributes 2 bytes */
IntPtr external_fa; /* external file attributes 4 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;
public ulong VersionNeeded {
get { return (ulong)version_needed.ToInt64 (); }
set { version_needed = new IntPtr ((int)value); }
}
public ulong Version {
get { return (ulong)version.ToInt64 (); }
set { version = new IntPtr ((int)value); }
}
public ulong UncompressedSize {
get { return (ulong)uncompressed_size.ToInt64 (); }
set { uncompressed_size = new IntPtr ((int)value); }
}
public ZipTime TmuDate {
get { return tmu_date; }
set { tmu_date = value; }
}
public ulong SizeFilename {
get { return (ulong)size_filename.ToInt64 (); }
set { size_filename = new IntPtr ((int)value); }
}
public ulong SizeFileExtra {
get { return (ulong)size_file_extra.ToInt64 (); }
set { size_file_extra = new IntPtr ((int)value); }
}
public ulong SizeFileComment {
get {
return (ulong)size_file_comment.ToInt64 ();
}
set {
size_file_comment = new IntPtr ((int)value);
}
}
public ulong InternalFa {
get { return (ulong)internal_fa.ToInt64 (); }
set { internal_fa = new IntPtr ((int)value); }
}
public ulong Flag {
get { return (ulong)flag.ToInt64 (); }
set { flag = new IntPtr ((int)value); }
}
public ulong ExternalFa {
get { return (ulong)external_fa.ToInt64 (); }
set { external_fa = new IntPtr ((int)value); }
}
public ulong DosDate {
get { return (ulong)dosDate.ToInt64 (); }
set { dosDate = new IntPtr ((int)value); }
}
public ulong DiskNumStart {
get { return (ulong)disk_num_start.ToInt64 (); }
set { disk_num_start = new IntPtr ((int)value); }
}
public ulong Crc {
get { return (ulong)crc.ToInt64 (); }
set { crc = new IntPtr ((int)value); }
}
public ulong CompressionMethod {
get { return (ulong)compression_method.ToInt64 (); }
set { compression_method = new IntPtr ((int)value); }
}
public ulong CompressedSize {
get { return (ulong)compressed_size.ToInt64 (); }
set { compressed_size = new IntPtr ((int)value); }
}
}
[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;
}
}