GetAddress() abstract private method

abstract private GetAddress ( TargetMemoryAccess target ) : TargetAddress
target TargetMemoryAccess
return TargetAddress
Ejemplo n.º 1
0
        public TargetAddress GetAddress(Thread thread)
        {
            if (!Location.HasAddress)
            {
                throw new InvalidOperationException();
            }

            return((TargetAddress)thread.ThreadServant.DoTargetAccess(
                       delegate(TargetMemoryAccess target) {
                return Location.GetAddress(target);
            }));
        }
        internal override TargetAddress GetAddress(TargetMemoryAccess target)
        {
            TargetAddress address = reference.GetAddress(target);

            if (address.IsNull)
            {
                return(TargetAddress.Null);
            }
            else
            {
                return(target.ReadAddress(address));
            }
        }
 internal override TargetAddress GetAddress(TargetMemoryAccess target)
 {
     return(relative_to.GetAddress(target) + offset);
 }