コード例 #1
0
 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++]);
     }
 }
コード例 #2
0
 private static void ConvertTimeSpanMillis(ReadOnlySpan <int> source, Span <TimeSpan> destination)
 {
     for (int i = 0; i != destination.Length; ++i)
     {
         destination[i] = LogicalRead.ToTimeSpanMillis(source[i]);
     }
 }