27
27
using System ;
28
28
using System . Runtime . InteropServices ;
29
29
30
+ [ assembly: DefaultDllImportSearchPathsAttribute ( DllImportSearchPath . SafeDirectories ) ]
31
+
30
32
namespace Xamarin . Tools . Zip
31
33
{
32
34
internal class Native
@@ -47,16 +49,16 @@ public struct zip_source_args_seek_t
47
49
48
50
public struct zip_stat_t
49
51
{
50
- public UInt64 valid ; /* which fields have valid values */
51
- public IntPtr name ; /* name of the file (char *) */
52
- public UInt64 index ; /* index within archive */
53
- public UInt64 size ; /* size of file (uncompressed) */
54
- public UInt64 comp_size ; /* size of file (compressed) */
55
- public IntPtr mtime ; /* modification time (time_t) */
56
- public UInt32 crc ; /* crc of file data */
57
- public Int16 comp_method ; /* compression method used */
58
- public UInt16 encryption_method ; /* encryption method used */
59
- public UInt32 flags ; /* reserved for future use */
52
+ public UInt64 valid ; /* which fields have valid values */
53
+ public IntPtr name ; /* name of the file (char *) */
54
+ public UInt64 index ; /* index within archive */
55
+ public UInt64 size ; /* size of file (uncompressed) */
56
+ public UInt64 comp_size ; /* size of file (compressed) */
57
+ public IntPtr mtime ; /* modification time (time_t) */
58
+ public UInt32 crc ; /* crc of file data */
59
+ public Int16 comp_method ; /* compression method used */
60
+ public UInt16 encryption_method ; /* encryption method used */
61
+ public UInt32 flags ; /* reserved for future use */
60
62
} ;
61
63
62
64
[ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
@@ -360,7 +362,7 @@ public static int zip_set_file_comment (IntPtr archive, UInt64 index, string com
360
362
361
363
[ DllImport ( ZIP_LIBNAME , CallingConvention = CallingConvention . Cdecl ) ]
362
364
public static extern int zip_set_file_compression ( IntPtr archive , UInt64 index , CompressionMethod comp , UInt32 comp_flags ) ;
363
-
365
+
364
366
[ DllImport ( ZIP_LIBNAME , CallingConvention = CallingConvention . Cdecl ) ]
365
367
public static extern int zip_file_set_mtime ( IntPtr archive , UInt64 index , ulong mtime , UInt32 flags ) ;
366
368
0 commit comments