示例#1
0
 /// <summary>
 /// Returns a value indicating whether this instance is equal to a specified object.
 /// </summary>
 public bool Equals(RemotePointer other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     return(ReferenceEquals(this, other) || (BaseAddress.Equals(other.BaseAddress) && MemorySharp.Equals(other.MemorySharp)));
 }
示例#2
0
 /// <summary>
 /// Returns a value indicating whether this instance is equal to a specified object.
 /// </summary>
 public bool Equals(RemoteRegion other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     return(ReferenceEquals(this, other) || (BaseAddress.Equals(other.BaseAddress) && MemorySharp.Equals(other.MemorySharp) &&
                                             Information.RegionSize.Equals(other.Information.RegionSize)));
 }
 /// <summary>
 ///     Returns a value indicating whether this instance is equal to a specified object.
 /// </summary>
 public bool Equals(RemoteCall other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     return(ReferenceEquals(this, other) ||
            (BaseAddress.Equals(other.BaseAddress) && Memory.Equals(other.Memory)));
 }
示例#4
0
 /// <summary>
 ///     Returns a value indicating whether this instance is equal to a specified object.
 /// </summary>
 public bool Equals(AMemoryPointer other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     return(ReferenceEquals(this, other) ||
            (BaseAddress.Equals(other.BaseAddress) && Process.Equals(other.Process)));
 }
示例#5
0
 /// <summary>
 ///     Returns a value indicating whether this instance is equal to a specified object.
 /// </summary>
 public bool Equals(MemoryRegion other)
 {
     if (other is null)
     {
         return(false);
     }
     return(ReferenceEquals(this, other) ||
            BaseAddress.Equals(other.BaseAddress) && Process.Equals(other.Process) &&
            Information.RegionSize.Equals(other.Information.RegionSize));
 }
示例#6
0
 public bool Equals(MemoryRegionBase other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(BaseAddress.Equals(other.BaseAddress) && Size == other.Size);
 }
示例#7
0
 public bool Equals(RemoteRegion other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(BaseAddress.Equals(other.BaseAddress) &&
            m_Process.Equals(other.m_Process) &&
            Information.RegionSize.Equals(other.Information.RegionSize));
 }
示例#8
0
 public bool Equals(NativeModule other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(BaseAddress.Equals(other.BaseAddress) &&
            ModuleMemorySize == other.ModuleMemorySize &&
            ModuleName.Equals(other.ModuleName, StringComparison.OrdinalIgnoreCase));
 }