public DarksVMMethodInfo LookupInfo(MethodDef method)
 {
     if (!this.methodInfos.TryGetValue(method, out DarksVMMethodInfo ret))
     {
         int k = this.random.Next();
         ret = new DarksVMMethodInfo
         {
             EntryKey = (byte)k,
             ExitKey  = (byte)(k >> 8)
         };
         this.methodInfos[method] = ret;
     }
     return(ret);
 }
Esempio n. 2
0
        public DarksVMMethodInfo LookupInfo(MethodDef method)
        {
            DarksVMMethodInfo ret;

            if (!methodInfos.TryGetValue(method, out ret))
            {
                var k = random.Next();
                ret = new DarksVMMethodInfo
                {
                    EntryKey = (byte)k,
                    ExitKey  = (byte)(k >> 8)
                };
                methodInfos[method] = ret;
            }
            return(ret);
        }
Esempio n. 3
0
 public void SetInfo(MethodDef method, DarksVMMethodInfo info)
 {
     methodInfos[method] = info;
 }