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