Пример #1
0
        public static void smethod_11(string string0, List <string> list0, List <string> list1, string string1)
        {
            Stream stream  = File.OpenRead(string0);
            var    stream2 = new ZipCompressor(stream);

            if (string1 != null)
            {
                stream2.method_3(string1);
            }
            var      array = new byte[2048];
            Class193 @class;

            while ((@class = stream2.method_5()) != null)
            {
                if (list1.Contains(@class.method_20()))
                {
                    var index = list1.IndexOf(@class.method_20());
                    using (Stream stream3 = File.Create(list0[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();
        }
Пример #2
0
        public static void smethod_10(Stream zipFile, Stream memoryStream, string fileName, string password)
        {
            var zipManager = new ZipCompressor(zipFile);

            if (password != null)
            {
                zipManager.method_3(password);
            }
            var      buffer = new byte[2048];
            Class193 @class;

            while ((@class = zipManager.method_5()) != null)
            {
                if (@class.method_20() == fileName)
                {
                    int num;
                    do
                    {
                        num = zipManager.Read(buffer, 0, buffer.Length);
                        memoryStream.Write(buffer, 0, num);
                    } while (num > 0);
                    zipManager.Close();
                    memoryStream.Close();
                    zipFile.Close();
                    return;
                }
            }
        }