GetAddress() abstract private method

abstract private GetAddress ( TargetMemoryAccess target ) : TargetAddress
target TargetMemoryAccess
return TargetAddress
コード例 #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);
            }));
        }
コード例 #2
0
        internal override TargetAddress GetAddress(TargetMemoryAccess target)
        {
            TargetAddress address = reference.GetAddress(target);

            if (address.IsNull)
            {
                return(TargetAddress.Null);
            }
            else
            {
                return(target.ReadAddress(address));
            }
        }
コード例 #3
0
 internal override TargetAddress GetAddress(TargetMemoryAccess target)
 {
     return(relative_to.GetAddress(target) + offset);
 }