public static LogMatchSection MinimumBoundingLine(LogMatchSection lhs, LogMatchSection rhs) { LogMatchIndex minIndex = LogMatchIndex.Min(lhs.Index, rhs.Index); LogMatchIndex maxIndex = LogMatchIndex.Max(lhs.Index + lhs.Count, rhs.Index + rhs.Count); int count = maxIndex - minIndex; return(new LogMatchSection(minIndex, count)); }
public static LogMatchSection MinimumBoundingLine(LogMatchSection lhs, LogMatchSection rhs) { LogMatchIndex minIndex = LogMatchIndex.Min(lhs.Index, rhs.Index); LogMatchIndex maxIndex = LogMatchIndex.Max(lhs.Index + lhs.Count, rhs.Index + rhs.Count); int count = maxIndex - minIndex; return new LogMatchSection(minIndex, count); }
public bool Equals(LogMatchSection other) { return(Index == other.Index && Count == other.Count); }
static LogMatchSection() { Reset = new LogMatchSection(LogMatchIndex.Invalid, 0); }
public bool Equals(LogMatchSection other) { return Index == other.Index && Count == other.Count; }