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++]); } }
private static void ConvertDateTimeMicros(ReadOnlySpan <long> source, Span <DateTime> destination) { for (int i = 0; i != destination.Length; ++i) { destination[i] = LogicalRead.ToDateTimeMicros(source[i]); } }