Esempio n. 1
0
 /// <summary>
 /// Returns true if any of the spans in this instance overlaps with <paramref name="span"/>
 /// </summary>
 /// <param name="span">Span</param>
 /// <returns></returns>
 public bool OverlapsWith(HexBufferSpan span)
 {
     if (span.IsDefault)
     {
         throw new ArgumentException();
     }
     // buffer could be null if Count is 0
     if (Count == 0)
     {
         return(false);
     }
     if (span.Buffer != buffer)
     {
         throw new ArgumentException();
     }
     return(coll.OverlapsWith(span.Span));
 }