bool IEquatable <BlamPointer> .Equals(BlamPointer other) { var val = this.Address == other.Address && this.Count == other.Count && this.ElementSize == other.ElementSize; if (val) { } return(val); }
internal static bool IsNull(BlamPointer pointer) { return(pointer.ElementCount == 0 && pointer.StartAddress == 0); }
bool IEquatable <BlamPointer> .Equals(BlamPointer other) { return(StartAddress == other.StartAddress && ElementCount == other.ElementCount && ElementSize == other.ElementSize); }
public bool Intersects(BlamPointer other) { return(!(StartAddress + PointedSize <= other.StartAddress || other.StartAddress + other.PointedSize <= StartAddress)); }
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)); }