예제 #1
0
        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));
        }
예제 #2
0
        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);
        }
예제 #3
0
 public bool Equals(LogMatchSection other)
 {
     return(Index == other.Index && Count == other.Count);
 }
예제 #4
0
 static LogMatchSection()
 {
     Reset = new LogMatchSection(LogMatchIndex.Invalid, 0);
 }
예제 #5
0
 public bool Equals(LogMatchSection other)
 {
     return Index == other.Index && Count == other.Count;
 }
예제 #6
0
 static LogMatchSection()
 {
     Reset = new LogMatchSection(LogMatchIndex.Invalid, 0);
 }