public static void smethod_11(string string_0, List <string> list_0, List <string> list_1, string string_1) { Stream stream = File.OpenRead(string_0); ns12.ZIPCompressor stream2 = new ns12.ZIPCompressor(stream); if (string_1 != null) { stream2.method_3(string_1); } byte[] array = new byte[2048]; Class193 @class; while ((@class = stream2.method_5()) != null) { if (list_1.Contains(@class.method_20())) { int index = list_1.IndexOf(@class.method_20()); using (Stream stream3 = File.Create(list_0[index])) { if (stream3.CanWrite) { int num; do { num = stream2.Read(array, 0, array.Length); stream3.Write(array, 0, num); }while (num > 0); } } } } stream2.Close(); stream.Close(); }
public static void smethod_10(Stream zipFile, Stream memoryStream, string fileName, string password) { ns12.ZIPCompressor zipManager = new ns12.ZIPCompressor(zipFile); if (password != null) { zipManager.method_3(password); } byte[] array = new byte[2048]; Class193 @class; while ((@class = zipManager.method_5()) != null) { if (@class.method_20() == fileName) { int num; do { num = zipManager.Read(array, 0, array.Length); memoryStream.Write(array, 0, num); }while (num > 0); zipManager.Close(); memoryStream.Close(); zipFile.Close(); return; } } }
public static void smethod_10(Stream zipFile, Stream memoryStream, string fileName, string password) { ns12.ZIPCompressor zipManager = new ns12.ZIPCompressor(zipFile); if (password != null) { zipManager.method_3(password); } byte[] array = new byte[2048]; Class193 @class; while ((@class = zipManager.method_5()) != null) { if (@class.method_20() == fileName) { int num; do { num = zipManager.Read(array, 0, array.Length); memoryStream.Write(array, 0, num); } while (num > 0); zipManager.Close(); memoryStream.Close(); zipFile.Close(); return; } } }
public static void smethod_11(string string_0, List<string> list_0, List<string> list_1, string string_1) { Stream stream = File.OpenRead(string_0); ns12.ZIPCompressor stream2 = new ns12.ZIPCompressor(stream); if (string_1 != null) { stream2.method_3(string_1); } byte[] array = new byte[2048]; Class193 @class; while ((@class = stream2.method_5()) != null) { if (list_1.Contains(@class.method_20())) { int index = list_1.IndexOf(@class.method_20()); using (Stream stream3 = File.Create(list_0[index])) { if (stream3.CanWrite) { int num; do { num = stream2.Read(array, 0, array.Length); stream3.Write(array, 0, num); } while (num > 0); } } } } stream2.Close(); stream.Close(); }