Пример #1
0
 private ImageMapVectorTable LoadJumpTable_v4(JumpTable_v4 sTable)
 {
     if (platform == null || !platform.TryParseAddress(sTable.TableAddress, out Address addr))
         return null;
     var listAddrDst = new List<Address>();
     if (sTable.Destinations != null)
     {
         foreach (var item in sTable.Destinations)
         {
             if (!platform.TryParseAddress(item, out Address addrDst))
                 break;
             listAddrDst.Add(addrDst);
         }
     }
     return new ImageMapVectorTable(addr, listAddrDst.ToArray(), 0);
 }
Пример #2
0
        private ImageMapVectorTable LoadJumpTable_v4(JumpTable_v4 sTable)
        {
            if (!platform.TryParseAddress(sTable.TableAddress, out Address addr))
            {
                return(null);
            }
            var listAddrDst = new List <Address>();

            foreach (var item in sTable.Destinations)
            {
                if (!platform.TryParseAddress(item, out Address addrDst))
                {
                    break;
                }
                listAddrDst.Add(addrDst);
            }
            return(new ImageMapVectorTable(addr, listAddrDst.ToArray(), 0));
        }