bool IEquatable <BlamPointer> .Equals(BlamPointer other)
        {
            var val = this.Address == other.Address && this.Count == other.Count && this.ElementSize == other.ElementSize;

            if (val)
            {
            }
            return(val);
        }
예제 #2
0
 internal static bool IsNull(BlamPointer pointer)
 {
     return(pointer.ElementCount == 0 && pointer.StartAddress == 0);
 }
예제 #3
0
 bool IEquatable <BlamPointer> .Equals(BlamPointer other)
 {
     return(StartAddress == other.StartAddress && ElementCount == other.ElementCount &&
            ElementSize == other.ElementSize);
 }
예제 #4
0
 public bool Intersects(BlamPointer other)
 {
     return(!(StartAddress + PointedSize <= other.StartAddress ||
              other.StartAddress + other.PointedSize <= StartAddress));
 }
예제 #5
0
 public static void Write(this BinaryWriter binaryWriter, BlamPointer blamPointer)
 {
     binaryWriter.Write(blamPointer.ElementCount);
     binaryWriter.Write(blamPointer.ElementCount > 0 ? blamPointer.StartAddress : 0);
 }
 public bool Intersects(BlamPointer other)
 {
     return(!(this.Address + this.PointedSize <= other.Address ||
              other.Address + other.PointedSize <= this.Address));
 }