Example #1
0
        // Token: 0x060000FE RID: 254 RVA: 0x0000E888 File Offset: 0x0000CA88
        public static global::\u0006.\u000E \u0002(string \u0002)
        {
            global::\u0006.\u000E u000E = new global::\u0006.\u000E();
            byte[]   array    = File.ReadAllBytes(\u0002);
            GCHandle gchandle = GCHandle.Alloc(array, GCHandleType.Pinned);

            u000E.\u0002 = (global::\u0006.\u0003)Marshal.PtrToStructure(gchandle.AddrOfPinnedObject(), typeof(global::\u0006.\u0003));
            checked
            {
                u000E.\u0003 = new global::\u0006.\u0005[(int)(u000E.\u0002.\u0005 - 1 + 1)];
                u000E.\u0005 = new byte[(int)(u000E.\u0002.\u0005 - 1 + 1)][];
                int  num            = Marshal.SizeOf(u000E.\u0002);
                Type typeFromHandle = typeof(global::\u0006.\u0005);
                int  num2           = Marshal.SizeOf(typeFromHandle);
                int  num3           = 0;
                int  num4           = (int)(u000E.\u0002.\u0005 - 1);
                for (int i = num3; i <= num4; i++)
                {
                    IntPtr ptr = new IntPtr(gchandle.AddrOfPinnedObject().ToInt64() + unchecked ((long)num));
                    global::\u0006.\u0005 u = (global::\u0006.\u0005)Marshal.PtrToStructure(ptr, typeFromHandle);
                    u000E.\u0003[i] = u;
                    u000E.\u0005[i] = new byte[u.\u000F - 1 + 1];
                    Buffer.BlockCopy(array, u.\u0002\u2000, u000E.\u0005[i], 0, u.\u000F);
                    num += num2;
                }
                gchandle.Free();
                return(u000E);
            }
        }
Example #2
0
    // Token: 0x0600000D RID: 13 RVA: 0x00002190 File Offset: 0x00000390
    public static void \u0002(string \u0002, string \u0003, uint \u0005, uint \u0008)
    {
        global::\u0006.\u000E u000E = global::\u0006.\u000E.\u0002(\u0003);
        IntPtr intPtr = global::\u0006.\u0002.\u0002(\u0002, false);

        byte[] array   = u000E.\u0002(\u0008);
        IntPtr u       = intPtr;
        IntPtr intPtr2 = new IntPtr(14L);
        IntPtr u2      = intPtr2;
        IntPtr intPtr3 = new IntPtr((long)((ulong)\u0005));

        global::\u0006.\u0002.\u0002(u, u2, intPtr3, 0, array, array.Length);
        int num = 0;

        checked
        {
            int num2 = u000E.\u0002() - 1;
            for (int i = num; i <= num2; i++)
            {
                byte[] array2 = u000E.\u0002(i);
                IntPtr u3     = intPtr;
                intPtr3 = new IntPtr(3L);
                IntPtr u4 = intPtr3;
                intPtr2 = new IntPtr((long)(unchecked ((ulong)\u0008) + (ulong)(unchecked ((long)i))));
                global::\u0006.\u0002.\u0002(u3, u4, intPtr2, 0, array2, array2.Length);
            }
            global::\u0006.\u0002.\u0002(intPtr, false);
        }
    }