コード例 #1
0
 public MyZipFileInfo GetFile(string name)
 {
     FixName(ref name);
     return(new MyZipFileInfo(MyZipArchiveReflection.GetFile(m_zip, m_mixedCaseHelper[name])));
 }
コード例 #2
0
 public void DeleteFile(string name)
 {
     FixName(ref name);
     MyZipArchiveReflection.DeleteFile(m_zip, name);
 }
コード例 #3
0
 public static MyZipArchive OpenOnStream(Stream stream, FileMode mode = FileMode.OpenOrCreate, FileAccess access = FileAccess.ReadWrite, bool streaming = false)
 {
     return(new MyZipArchive(MyZipArchiveReflection.OpenOnStream(stream, mode, access, streaming)));
 }
コード例 #4
0
 public MyZipFileInfo AddFile(string path, CompressionMethodEnum compressionMethod = CompressionMethodEnum.Deflated, DeflateOptionEnum deflateOption = DeflateOptionEnum.Normal)
 {
     return(new MyZipFileInfo(MyZipArchiveReflection.AddFile(m_zip, path, (ushort)compressionMethod, (byte)deflateOption)));
 }
コード例 #5
0
 public static MyZipArchive OpenOnFile(string path, FileMode mode = FileMode.Open, FileAccess access = FileAccess.Read, FileShare share = FileShare.Read, bool streaming = false)
 {
     return(new MyZipArchive(MyZipArchiveReflection.OpenOnFile(path, mode, access, share, streaming), path));
 }