Ejemplo n.º 1
0
 public static unsafe void \u003CMarshalDestroy\u003E(SubStorage *A_0)
 {
     // ISSUE: fault handler
     try
     {
         uint num = (uint)*(int *)((IntPtr)A_0 + 24 + 4);
         if (num != 0U)
         {
             \u003CModule\u003E.std\u002E_Ref_count_base\u002E_Decref((_Ref_count_base *)num);
         }
     }
     __fault
     {
         // ISSUE: method pointer
         // ISSUE: cast to a function pointer type
         \u003CModule\u003E.___CxxCallUnwindDtor((__FnPtr <void (void *)>)__methodptr(nn\u002Efs\u002EIStorage\u002E\u007Bdtor\u007D), (void *)A_0);
     }
     *(int *)A_0 = (int)&\u003CModule\u003E.\u003F\u003F_7IStorage\u0040fs\u0040nn\u0040\u00406B\u0040;
 }
        private unsafe void \u0021HierarchicalIntegrityVerificationStorage()
        {
            \u003CModule\u003E.delete((void *)this.m_pMetaInfo, 192U);
            \u003CModule\u003E.delete((void *)this.m_pInfoLevelHash, 180U);
            IntegrityRomFsStorage *integrityRomFsStorage = this.m_pIntegrityRomFsStorage;

            if ((IntPtr)integrityRomFsStorage != IntPtr.Zero)
            {
                IntegrityRomFsStorage *integrityRomFsStoragePtr = integrityRomFsStorage;
                int num = 1;
                // ISSUE: cast to a function pointer type
                // ISSUE: function pointer call
                void *voidPtr = __calli((__FnPtr <void *(IntPtr, uint)>) * (int *)*(int *)integrityRomFsStorage)((uint)integrityRomFsStoragePtr, (IntPtr)num);
            }
            FileSystemBufferManager *pBufferManager = this.m_pBufferManager;

            if ((IntPtr)pBufferManager != IntPtr.Zero)
            {
                FileSystemBufferManager *systemBufferManagerPtr = pBufferManager;
                int num = 1;
                // ISSUE: cast to a function pointer type
                // ISSUE: function pointer call
                void *voidPtr = __calli((__FnPtr <void *(IntPtr, uint)>) * (int *)*(int *)pBufferManager)((uint)systemBufferManagerPtr, (IntPtr)num);
            }
            SubStorage *pHashStorage = this.m_pHashStorage;

            if ((IntPtr)pHashStorage != IntPtr.Zero)
            {
                SubStorage *subStoragePtr = pHashStorage;
                int         num           = 1;
                // ISSUE: cast to a function pointer type
                // ISSUE: function pointer call
                void *voidPtr = __calli((__FnPtr <void *(IntPtr, uint)>) * (int *)*(int *)pHashStorage)((uint)subStoragePtr, (IntPtr)num);
            }
            SubStorage *pDummyStorage = this.m_pDummyStorage;

            if ((IntPtr)pDummyStorage != IntPtr.Zero)
            {
                SubStorage *subStoragePtr = pDummyStorage;
                int         num           = 1;
                // ISSUE: cast to a function pointer type
                // ISSUE: function pointer call
                void *voidPtr = __calli((__FnPtr <void *(IntPtr, uint)>) * (int *)*(int *)pDummyStorage)((uint)subStoragePtr, (IntPtr)num);
            }
            RomFsStorage *hashStorageBuffer = this.m_pHashStorageBuffer;

            if ((IntPtr)hashStorageBuffer != IntPtr.Zero)
            {
                RomFsStorage *romFsStoragePtr = hashStorageBuffer;
                int           num             = 1;
                // ISSUE: cast to a function pointer type
                // ISSUE: function pointer call
                void *voidPtr = __calli((__FnPtr <void *(IntPtr, uint)>) * (int *)*(int *)hashStorageBuffer)((uint)romFsStoragePtr, (IntPtr)num);
            }
            DummyStorage *dummyStorageBuffer = this.m_pDummyStorageBuffer;

            if ((IntPtr)dummyStorageBuffer == IntPtr.Zero)
            {
                return;
            }
            DummyStorage *dummyStoragePtr = dummyStorageBuffer;
            int           num1            = 1;
            // ISSUE: cast to a function pointer type
            // ISSUE: function pointer call
            void *voidPtr1 = __calli((__FnPtr <void *(IntPtr, uint)>) * (int *)*(int *)dummyStorageBuffer)((uint)dummyStoragePtr, (IntPtr)num1);
        }
Ejemplo n.º 3
0
 public static unsafe void \u003CMarshalCopy\u003E(SubStorage *A_0, SubStorage *A_1)
 {
     \u003CModule\u003E.nn\u002Efs\u002ESubStorage\u002E\u007Bctor\u007D(A_0, A_1);
 }