Ejemplo n.º 1
0
 private static void ConvertDateTimeMicros(ReadOnlySpan <long> source, ReadOnlySpan <short> defLevels, Span <DateTime?> destination, short nullLevel)
 {
     for (int i = 0, src = 0; i != destination.Length; ++i)
     {
         destination[i] = defLevels[i] == nullLevel ? default(DateTime?) : LogicalRead.ToDateTimeMicros(source[src++]);
     }
 }
Ejemplo n.º 2
0
 private static void ConvertDateTimeMicros(ReadOnlySpan <long> source, Span <DateTime> destination)
 {
     for (int i = 0; i != destination.Length; ++i)
     {
         destination[i] = LogicalRead.ToDateTimeMicros(source[i]);
     }
 }