예제 #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));
 }