예제 #1
0
        /// <inheritdoc/>
        public SharedConfig <TProxy> Lookup <TType, TProxy>(ICodegenType <TType, TProxy> codegenType)
            where TType : ICodegenType, new()
            where TProxy : ICodegenProxy <TType, TProxy>, new()
        {
            uint slotIndex = 0;

            return(MlosProxyInternal.SharedConfigDictionaryLookup <ProbingPolicy> .Get <TProxy>(SharedConfigDictionary, codegenType, ref slotIndex));
        }
예제 #2
0
        /// <inheritdoc/>
        public SharedConfig <TProxy> Lookup <TType, TProxy>(ICodegenType <TType, TProxy> codegenType)
            where TType : ICodegenType, new()
            where TProxy : ICodegenProxy <TType, TProxy>, new()
        {
            uint slotIndex = 0;

            return(sharedConfigMemoryRegion.Get <ProbingPolicy, TProxy>(codegenType, ref slotIndex));
        }
예제 #3
0
 public static ComponentConfig <TType, TProxy> Create <TType, TProxy>(ICodegenType <TType, TProxy> config)
     where TType : ICodegenType <TType, TProxy>, new()
     where TProxy : ICodegenProxy <TType, TProxy>, new()
 {
     return(new ComponentConfig <TType, TProxy>((TType)config));
 }