예제 #1
0
 private static void WriteParameter(ref BinarySpanWriter writer, ReadOnlySpan <byte> parameterName, ReadOnlySpan <byte> parameterValue)
 {
     if (parameterValue != null)
     {
         writer.WriteSpan(parameterName);
         writer.WriteSpan(parameterValue);
     }
 }
예제 #2
0
 private static void WriteParameter(ref BinarySpanWriter writer, ReadOnlySpan <byte> parameterName, string parameterValue)
 {
     if (parameterValue != null)
     {
         writer.WriteSpan(parameterName);
         writer.WriteNullTerminateUtf8String(parameterValue);
     }
 }