Code.ConvertingForToLinq.IntIntervalCollection.FindOverlap(Span)

Here are the examples of the csharp api class Code.ConvertingForToLinq.IntIntervalCollection.FindOverlap(Span) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

View license
public void AddConfiguration(Span<int> configuration)
        {
            int? pos = FindOverlap(configuration);
            if (pos.HasValue)
            {
                var tmp = UncoveredIntervals[pos.Value];
                UncoveredIntervals.RemoveAt(pos.Value);

                var splitIntervals = tmp.RemoveInterval(configuration);
                UncoveredIntervals.InsertRange(pos.Value, splitIntervals);
            }
            Configurations.Add(configuration);
        }