예제 #1
0
 private static void ConvertByteArray(ReadOnlySpan <ByteArray> source, ReadOnlySpan <short> defLevels, Span <byte[]> destination, short nullLevel)
 {
     for (int i = 0, src = 0; i != destination.Length; ++i)
     {
         destination[i] = !defLevels.IsEmpty && defLevels[i] == nullLevel ? null : LogicalRead.ToByteArray(source[src++]);
     }
 }