Esempio n. 1
0
    private void method_2(Stream A_0)
    {
        uint        num2;
        Interface40 interface2;
        int         num3 = 0x10;

        if (A_0 == null)
        {
            throw new ArgumentNullException(BookmarkStart.b("䔵䰷䠹夻弽ⴿ", num3));
        }
        Class359.CreateILockBytesOnHGlobal(IntPtr.Zero, true, out this.interface65_0);
        int count = (int)(A_0.Length - A_0.Position);

        byte[] buffer = new byte[count];
        A_0.Read(buffer, 0, count);
        this.interface65_0.imethod_1(0L, buffer, (uint)buffer.Length, out num2);
        this.interface65_0.imethod_2();
        Class359.StgOpenStorageOnILockBytes(this.interface65_0, null, STGM.STGM_DIRECT_SWMR | STGM.STGM_SHARE_DENY_NONE, 0, 0, out interface2);
        this.class1005_0 = new Class1005(interface2);
    }
Esempio n. 2
0
    public Stream12(Stream A_0, STGM A_1)
    {
        uint num3;
        int  num4 = 7;

        this.long_0 = -1L;
        this.list_0 = new List <string>();
        this.list_1 = new List <string>();
        if (A_0 is Stream12)
        {
            throw new ArgumentException(BookmarkStart.b("搬嬮ᄰ娲䘴᜶樸伺娼氾㕀ㅂ⁄♆⑈歊ⱌ⍎⍐㙒㑔㍖⁘畚", num4));
        }
        int errorCode = Class359.CreateILockBytesOnHGlobal(IntPtr.Zero, true, out this.interface65_0);

        if (errorCode != 0)
        {
            throw new ExternalException(BookmarkStart.b("測丮弰ᐲ䄴᜶娸䤺堼帾㕀♂敄୆♈⡊♌ൎ⡐❒ご⑖睘", num4), errorCode);
        }
        int count = (int)(A_0.Length - A_0.Position);

        byte[] buffer = new byte[count];
        A_0.Read(buffer, 0, count);
        errorCode = this.interface65_0.imethod_1(0L, buffer, (uint)buffer.Length, out num3);
        if (errorCode != 0)
        {
            throw new ExternalException(BookmarkStart.b("測丮弰ᐲ䄴᜶丸䤺吼䬾⑀捂ॄ⡆⩈⁊ཌ㙎═㙒♔祖", num4), errorCode);
        }
        errorCode = this.interface65_0.imethod_2();
        if (errorCode != 0)
        {
            throw new ExternalException(BookmarkStart.b("測丮弰ᐲ䄴᜶弸场䠼䰾⥀捂ॄ⡆⩈⁊ཌ㙎═㙒♔祖", num4), errorCode);
        }
        errorCode = Class359.StgOpenStorageOnILockBytes(this.interface65_0, null, A_1, 0, 0, out this.interface40_0);
        if (errorCode != 0)
        {
            throw new ExternalException(BookmarkStart.b("測丮弰ᐲ䄴᜶嘸䬺堼儾慀あㅄ⡆㭈⩊⩌⩎煐㱒㭔睖ᕘ㑚㹜㑞⍠ᩢᅤɦᩨ䕪", num4), errorCode);
        }
        this.method_27();
        this.stgm_5 = A_1;
    }