コード例 #1
0
ファイル: LogicalWrite.cs プロジェクト: ljubon/ParquetSharp
 private static void ConvertTimeSpanMillis(ReadOnlySpan <TimeSpan> source, Span <int> destination)
 {
     for (int i = 0; i < source.Length; ++i)
     {
         destination[i] = LogicalWrite.FromTimeSpanMillis(source[i]);
     }
 }
コード例 #2
0
ファイル: LogicalWrite.cs プロジェクト: ljubon/ParquetSharp
 private static void ConvertTimeSpanMillis(ReadOnlySpan <TimeSpan?> source, Span <short> defLevels, Span <int> destination, short nullLevel)
 {
     for (int i = 0, dst = 0; i < source.Length; ++i)
     {
         var value = source[i];
         if (value == null)
         {
             defLevels[i] = nullLevel;
         }
         else
         {
             destination[dst++] = LogicalWrite.FromTimeSpanMillis(value.Value);
             defLevels[i]       = (short)(nullLevel + 1);
         }
     }
 }