Пример #1
0
    internal static void smethod_1(Stream A_0, int A_1, Document A_2)
    {
        int num = 2;

        if (((A_0 != null) && (A_0.Length != 0L)) && (A_1 != 0))
        {
            string item = BookmarkStart.b("眧", num) + A_1;
            if (!A_2.ObjPoolContainers.Contains(item))
            {
                A_2.ObjPoolContainers.Add(item);
                A_0.Position = 0L;
                MemoryStream stream  = new MemoryStream();
                Stream12     stream2 = Stream12.smethod_2();
                Stream12     stream3 = stream2.method_13(BookmarkStart.b("朧䠩䘫䬭匯䘱搳夵圷嘹", num));
                byte[]       buffer  = new byte[A_0.Length];
                A_0.Read(buffer, 0, buffer.Length);
                A_0.Position = 0L;
                MemoryStream stream4 = new MemoryStream(buffer);
                Stream12     stream5 = new Stream12(stream4);
                Stream12     stream6 = stream5.method_11(item);
                Stream12.smethod_0(stream6, stream3);
                stream2.Flush();
                stream2.method_17(stream);
                stream.Position = 0L;
                if (A_2.ObjectPool == null)
                {
                    A_2.ObjectPool = stream.GetBuffer();
                }
                else
                {
                    byte[] objectPool = A_2.ObjectPool;
                    smethod_0(stream, A_1, new MemoryStream(A_2.ObjectPool), out objectPool);
                    A_2.ObjectPool = objectPool;
                }
                stream2.Close();
                stream2.Dispose();
                stream3.Close();
                stream3.Dispose();
                stream5.Close();
                stream5.Dispose();
                stream6.Close();
                stream6.Dispose();
                stream.Close();
                stream.Dispose();
            }
        }
    }
Пример #2
0
        internal static byte[] smethod_3(List <DocOleObject> A_0)
        {
            int num = 3;

            byte[] buffer = new byte[0];
            if ((A_0 != null) && (A_0.Count > 0))
            {
                List <string> list = new List <string>();
                using (MemoryStream stream5 = new MemoryStream())
                {
                    using (Stream12 stream = Stream12.smethod_2())
                    {
                        using (Stream12 stream2 = stream.method_13(BookmarkStart.b("昨䤪䜬䨮到䜲攴堶嘸场", num)))
                        {
                            foreach (DocOleObject obj2 in A_0)
                            {
                                string item = BookmarkStart.b("瘨", num) + obj2.Interface49.get_OleStorageName();
                                if (!list.Contains(item))
                                {
                                    list.Add(item);
                                    if (obj2.Interface49.get_Container() != null)
                                    {
                                        obj2.Interface49.get_Container().Position = 0L;
                                        using (Stream12 stream3 = new Stream12(obj2.Interface49.get_Container()))
                                        {
                                            using (Stream12 stream4 = stream3.method_11(item))
                                            {
                                                Stream12.smethod_0(stream4, stream2);
                                            }
                                        }
                                    }
                                }
                            }
                            stream.Flush();
                            stream.method_17(stream5);
                            stream5.Position = 0L;
                            buffer           = stream5.ToArray();
                        }
                    }
                }
                list = null;
            }
            return(buffer);
        }
Пример #3
0
    public static void smethod_0(Stream12 A_0, Stream12 A_1)
    {
        int num = 7;

        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("帬䀮䐰䄲嘴制", num));
        }
        if (A_1 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("䤬䨮䈰䜲尴夶堸伺吼倾⽀", num));
        }
        string str = A_0.method_6();

        if (str == null)
        {
            throw new ArgumentException(BookmarkStart.b("縬䀮䐰䄲嘴制ᤸ强刼娾㉀捂⭄⡆㵈歊⹌⁎㽐❒㑔㹖㝘筚㉜⽞Ѡൢdͦ䥨ᡪᡬ൮屰rŴᡶ୸᩺᩼᩾", num));
        }
        using (Stream12 stream = !A_1.method_20(str) ? A_1.method_13(str) : A_1.method_11(str))
        {
            A_0.method_3().imethod_4(0, IntPtr.Zero, IntPtr.Zero, stream.method_3());
            A_1.method_3().imethod_6(0);
        }
    }