Ejemplo n.º 1
0
        private long WriteDic(SystemDic setup)
        {
            //Discarded unreachable code: IL_0002
            //IL_0003: Incompatible stack heights: 0 vs 1
            IntPtr intPtr = Marshal.AllocHGlobal(MockIteratorMapping.FillError <ImporterReaderMapper>());

            try
            {
                int num = setup._0001(-1, ComparatorConsumer.serviceDic, intPtr);
                switch (num)
                {
                case -1072875802:
                    return(0L);

                default:
                    Marshal.ThrowExceptionForHR(num);
                    break;

                case 0:
                    break;
                }
                return((long)MockIteratorMapping.RunError <ImporterReaderMapper>(intPtr)._0001() * _SystemInstance._0004() / 10000000);
            }
            finally
            {
                ImporterReaderMapper.ViewError(intPtr);
                Marshal.FreeHGlobal(intPtr);
            }
        }
Ejemplo n.º 2
0
        private RefList CallDic(SystemDic item)
        {
            //Discarded unreachable code: IL_0002
            //IL_0003: Incompatible stack heights: 0 vs 1
            item._0001(-3, out PredicateIssuerMock reg);
            BaseClassSpec baseClassSpec = new BaseClassSpec(reg);

            baseClassSpec._0002();
            Guid guid     = baseClassSpec._0001();
            int  num      = baseClassSpec._0002();
            int  attr_end = baseClassSpec._0003();
            int  num2     = baseClassSpec._0001();

            if (guid == IndexerInstance._TokenInstance)
            {
                return(new RefList(num2, attr_end, num));
            }
            if (guid == IndexerInstance.baseInstance)
            {
                return(RefList.ListDic(num2, num));
            }
            string arg = BridgeInstance.ResolveError(typeof(IndexerInstance), guid);

            throw new InvalidDataException($"Unsupported audio sub Type {arg}");
        }
Ejemplo n.º 3
0
 private static BaseClassSpec PublishDic(SystemDic first)
 {
     //Discarded unreachable code: IL_0002
     //IL_0003: Incompatible stack heights: 0 vs 1
     first._0001(-3, out PredicateIssuerMock reg);
     return(new BaseClassSpec(reg));
 }
Ejemplo n.º 4
0
    public virtual void Shutdown()
    {
        if (SystemDic != null)
        {
            SystemDic.Clear();
            SystemDic = null;
        }

        if (SingletonComponentDic != null)
        {
            SingletonComponentDic.Clear();
            SingletonComponentDic = null;
        }

        if (ComponentDic != null)
        {
            ComponentDic.Clear();
            ComponentDic = null;
        }

        if (EntityDic != null)
        {
            foreach (var v in EntityDic)
            {
                if (v.Value != null)
                {
                    v.Value.Dispose();
                }
            }
            EntityDic.Clear();
            EntityDic = null;
        }
    }
Ejemplo n.º 5
0
    public void UnregisterSystem <T>() where T : SystemBase
    {
        var type = typeof(T);

        if (!SystemDic.ContainsKey(type))
        {
            return;
        }
        SystemDic.Remove(type);
    }
Ejemplo n.º 6
0
 protected override void _0001(bool acceptreference)
 {
     //Discarded unreachable code: IL_0002
     //IL_0003: Incompatible stack heights: 0 vs 1
     if (workerInstance != null)
     {
         Marshal.ReleaseComObject(workerInstance);
         workerInstance = null;
     }
     base.Dispose(acceptreference);
 }
Ejemplo n.º 7
0
    public void RegisterSystem <T>() where T : SystemBase, new()
    {
        var system = new T();
        var type   = typeof(T);

        if (SystemDic.ContainsKey(type))
        {
            Debug.LogErrorFormat("System : [{0}] has already registered", type);
            return;
        }
        SystemDic[typeof(T)] = system;
    }
Ejemplo n.º 8
0
        public override int Read(byte[] reference, int indexOf_second, int sum_util)
        {
            //Discarded unreachable code: IL_0002
            //IL_0003: Incompatible stack heights: 0 vs 1
            if (workerInstance == null)
            {
                workerInstance = _0001(_GetterInstance);
            }
            if (m_PublisherInstance != -1)
            {
                CheckError(m_PublisherInstance);
            }
            int num = 0;

            if (_ParamInstance > 0)
            {
                num += LoginError(reference, indexOf_second, sum_util - num);
            }
            while (num < sum_util)
            {
                workerInstance._0001(-3, 0, out int _, out CrashDumpGrbit connection, out ulong _, out DefinitionDic pol);
                if ((connection & (CrashDumpGrbit)2) != 0)
                {
                    break;
                }
                if ((connection & (CrashDumpGrbit)32) != 0)
                {
                    _SystemInstance = CallDic(workerInstance);
                    DisableError();
                }
                else if (connection != 0)
                {
                    throw new InvalidOperationException($"MediaFoundationReadError {connection}");
                }
                pol._0001(out InvocationDic info);
                info._0001(out IntPtr v, out int _, out int dir);
                RevertDic(dir);
                Marshal.Copy(v, _RulesInstance, 0, dir);
                _ContextInstance = 0;
                _ParamInstance   = dir;
                num += LoginError(reference, indexOf_second + num, sum_util - num);
                info._0001();
                Marshal.ReleaseComObject(info);
                Marshal.ReleaseComObject(pol);
            }
            advisorInstance += num;
            return(num);
        }
Ejemplo n.º 9
0
        protected void SortDic(StrategyInstance setup)
        {
            //Discarded unreachable code: IL_0002
            //IL_0003: Incompatible stack heights: 0 vs 1
            ResolverDic.AddError();
            _GetterInstance = (setup ?? new StrategyInstance());
            SystemDic systemDic = _0001(_GetterInstance);

            _SystemInstance = CallDic(systemDic);
            systemDic._0001(-3, readivk: true);
            identifierInstance = WriteDic(systemDic);
            if (_GetterInstance._0002())
            {
                workerInstance = systemDic;
            }
            else
            {
                Marshal.ReleaseComObject(systemDic);
            }
        }
Ejemplo n.º 10
0
 public static extern void FlushError([In][MarshalAs(UnmanagedType.LPWStr)] string init, [In] MapperIssuerMock pred, [MarshalAs(UnmanagedType.Interface)] out SystemDic rule);