Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="T:Xamarin.ZipSharp.ZipEntry"/> class.
        /// </summary>
        /// <param name="archive">ZIP archive instance.</param>
        /// <param name="stat">entry status information.</param>
        internal ZipEntry(ZipArchive archive, Native.zip_stat_t stat)
        {
            if (archive == null)
            {
                throw new ArgumentNullException(nameof(archive));
            }

            this.archive = archive;
            this.stat    = stat;
        }
Ejemplo n.º 2
0
 internal static ZipEntry Create(ZipArchive owner, Native.zip_stat_t stat)
 {
     if (Environment.OSVersion.Platform == PlatformID.Unix)
     {
         return(new UnixZipEntry(owner, stat));
     }
     else
     {
         return(new WindowsZipEntry(owner, stat));
     }
 }
Ejemplo n.º 3
0
 internal WindowsZipEntry(ZipArchive archive, Native.zip_stat_t stat)
     : base(archive, stat)
 {
 }
Ejemplo n.º 4
0
 internal UnixZipEntry(ZipArchive archive, Native.zip_stat_t stat)
     : base(archive, stat)
 {
 }