Exemplo n.º 1
0
    internal static void smethod_0(MemoryStream A_0, int A_1, MemoryStream A_2, out byte[] A_3)
    {
        Stream12 stream  = new Stream12(A_0);
        Stream12 stream2 = stream.method_11(BookmarkStart.b("礵娷倹夻崽㐿ቁ⭃⥅⑇", 0x10));
        string   str     = BookmarkStart.b("椵", 0x10) + A_1.ToString();
        Stream12 stream3 = stream2.method_11(str);
        Stream12 stream4 = new Stream12(A_2, STGM.STGM_SHARE_EXCLUSIVE | STGM.STGM_READWRITE);
        Stream12 stream5 = stream4.method_12(BookmarkStart.b("礵娷倹夻崽㐿ቁ⭃⥅⑇", 0x10), STGM.STGM_SHARE_EXCLUSIVE | STGM.STGM_READWRITE);

        if (!stream5.method_20(str))
        {
            Stream12.smethod_0(stream3, stream5);
        }
        stream.Dispose();
        stream2.Dispose();
        stream3.Dispose();
        stream  = null;
        stream2 = null;
        stream3 = null;
        A_2     = new MemoryStream();
        stream4.method_17(A_2);
        A_3 = A_2.GetBuffer();
        stream5.Dispose();
        stream4.Dispose();
        stream4 = null;
        stream5 = null;
    }
Exemplo n.º 2
0
    internal byte[] method_12(byte[] A_0, byte[] A_1, string A_2, DocOleObject A_3)
    {
        int          num    = 14;
        MemoryStream stream = new MemoryStream(A_0);
        string       str    = BookmarkStart.b("欳", 14) + A_3.Interface49.get_OleStorageName();

        if ((A_3.stream_1 != null) && (A_3.OleObjectType == OleObjectType.Undefined))
        {
            return(this.method_14(stream, A_3, str));
        }
        Stream12 stream3 = new Stream12(stream, STGM.STGM_SHARE_EXCLUSIVE | STGM.STGM_READWRITE);
        Stream12 stream4 = null;

        stream4 = stream3.method_12(BookmarkStart.b("笳吵刷弹弻䨽ဿⵁ⭃⩅", num), STGM.STGM_SHARE_EXCLUSIVE | STGM.STGM_READWRITE);
        Stream12 stream2 = stream4.method_12(str, STGM.STGM_SHARE_EXCLUSIVE | STGM.STGM_READWRITE);

        this.method_25(stream2, A_3.Interface49.get_LinkType(), A_3.OleObjectType, A_2);
        this.method_26(stream2, A_3.Interface49.get_LinkType(), A_3.OleObjectType);
        if (A_3.Interface49.get_LinkType() == OleLinkType.Embed)
        {
            this.byte_0 = A_1;
            this.method_22(stream2, A_3.OleObjectType);
            this.method_15(stream2, A_2, A_3.OleObjectType);
        }
        else
        {
            this.method_24(stream2, A_3.OleObjectType, A_2);
        }
        stream4.Flush();
        stream3.Flush();
        MemoryStream stream5 = new MemoryStream();

        stream3.method_17(stream5);
        stream5.Flush();
        byte[] buffer = stream5.ToArray();
        stream5.Close();
        stream3.Close();
        stream3.Dispose();
        stream4.Close();
        stream4.Dispose();
        return(buffer);
    }
Exemplo n.º 3
0
    internal byte[] method_11(byte[] A_0, string A_1, string A_2, OleLinkType A_3, OleObjectType A_4)
    {
        int num = 10;

        this.string_22 = A_1;
        if (A_4 == OleObjectType.Package)
        {
            this.string_21 = A_1;
        }
        MemoryStream stream  = new MemoryStream(A_0);
        Stream12     stream2 = new Stream12(stream, STGM.STGM_SHARE_EXCLUSIVE | STGM.STGM_READWRITE);
        Stream12     stream3 = null;

        stream3 = stream2.method_12(BookmarkStart.b("缯倱帳匵嬷丹氻儽⼿⹁", num), STGM.STGM_SHARE_EXCLUSIVE | STGM.STGM_READWRITE);
        Stream12 stream4 = stream3.method_12(A_2, STGM.STGM_SHARE_EXCLUSIVE | STGM.STGM_READWRITE);

        this.method_25(stream4, A_3, A_4, A_1);
        this.method_26(stream4, A_3, A_4);
        if (A_3 == OleLinkType.Embed)
        {
            this.byte_0 = File.ReadAllBytes(A_1);
            this.method_22(stream4, A_4);
            this.method_15(stream4, A_1, A_4);
        }
        else
        {
            this.method_24(stream4, A_4, A_1);
        }
        stream3.Flush();
        stream2.Flush();
        MemoryStream stream5 = new MemoryStream();

        stream2.method_17(stream5);
        stream5.Flush();
        byte[] buffer = stream5.ToArray();
        stream5.Close();
        stream2.Close();
        stream2.Dispose();
        stream3.Close();
        stream3.Dispose();
        return(buffer);
    }
Exemplo n.º 4
0
        private byte[] method_90(string A_0, byte[] A_1)
        {
            int num = 0x11;

            if ((this.stream_1 != null) && (this.OleObjectType == Spire.Doc.Documents.OleObjectType.Undefined))
            {
                A_1 = this.method_92(A_0, A_1);
                return(A_1);
            }
            MemoryStream stream  = null;
            Class1004    class2  = null;
            Stream12     stream2 = null;
            Stream12     stream3 = null;

            if ((A_1 != null) && (A_1.Length != 0))
            {
                stream  = new MemoryStream(A_1);
                stream2 = new Stream12(stream, STGM.STGM_SHARE_EXCLUSIVE | STGM.STGM_READWRITE);
                stream3 = stream2.method_12(BookmarkStart.b("砶嬸儺堼尾㕀ፂ⩄⡆╈", num), STGM.STGM_SHARE_EXCLUSIVE | STGM.STGM_READWRITE);
            }
            else
            {
                stream2 = Stream12.smethod_2();
                stream3 = stream2.method_13(BookmarkStart.b("砶嬸儺堼尾㕀ፂ⩄⡆╈", num));
            }
            class2 = new Class1004(BookmarkStart.b("搶䴸吺似帾♀♂", num), true);
            class2.Interface51.imethod_0().imethod_4(A_0);
            class2.Interface51.imethod_1().method_0()[1].method_13(Class1117.smethod_2(this.OleObjectType));
            MemoryStream stream4 = new MemoryStream();

            class2.Interface51.imethod_2();
            class2.Interface51.imethod_3(stream4);
            class2.System.IDisposable.Dispose();
            stream4.Flush();
            byte[] buffer = stream4.ToArray();
            stream4.Close();
            stream4 = new MemoryStream(buffer);
            MemoryStream stream5 = new MemoryStream();
            Stream12     stream6 = new Stream12(stream4);
            Stream12     stream7 = stream6.method_11(A_0);

            Stream12.smethod_0(stream7, stream3);
            stream2.Flush();
            stream2.method_17(stream5);
            stream5.Position = 0L;
            A_1 = stream5.ToArray();
            stream6.Close();
            stream6.Dispose();
            stream7.Close();
            stream7.Dispose();
            stream2.Close();
            stream2.Dispose();
            stream3.Close();
            stream3.Dispose();
            stream5.Close();
            stream5.Dispose();
            stream4.Close();
            stream4.Dispose();
            if (stream != null)
            {
                stream.Close();
                stream.Dispose();
            }
            return(A_1);
        }