private static void ConvertTimeSpanMillis(ReadOnlySpan <int> source, ReadOnlySpan <short> defLevels, Span <TimeSpan?> destination, short nullLevel) { for (int i = 0, src = 0; i != destination.Length; ++i) { destination[i] = defLevels[i] == nullLevel ? default(TimeSpan?) : LogicalRead.ToTimeSpanMillis(source[src++]); } }
private static void ConvertTimeSpanMillis(ReadOnlySpan <int> source, Span <TimeSpan> destination) { for (int i = 0; i != destination.Length; ++i) { destination[i] = LogicalRead.ToTimeSpanMillis(source[i]); } }