Ejemplo n.º 1
0
 private static void ConvertUuid(ReadOnlySpan <Guid> source, Span <FixedLenByteArray> destination, ByteBuffer byteBuffer)
 {
     for (int i = 0; i < source.Length; ++i)
     {
         destination[i] = LogicalWrite.FromUuid(source[i], byteBuffer);
     }
 }
Ejemplo n.º 2
0
 private static void ConvertUuid(ReadOnlySpan <Guid?> source, Span <short> defLevels, Span <FixedLenByteArray> destination, short nullLevel, ByteBuffer byteBuffer)
 {
     for (int i = 0, dst = 0; i < source.Length; ++i)
     {
         var value = source[i];
         if (value == null)
         {
             defLevels[i] = nullLevel;
         }
         else
         {
             destination[dst++] = LogicalWrite.FromUuid(value.Value, byteBuffer);
             defLevels[i]       = (short)(nullLevel + 1);
         }
     }
 }