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