コード例 #1
0
 public static void WriteLengthEncodedStringOld(this ByteBufferWriter writer, StringBuilder builder)
 {
     writer.WriteLengthEncodedString(builder.ToString());
 }
コード例 #2
0
 public static void WriteNullTerminatedString(this ByteBufferWriter writer, string value)
 {
     writer.Write(value);
     writer.Write((byte)0);
 }
コード例 #3
0
 public static void WriteLengthEncodedString(this ByteBufferWriter writer, string value) => writer.WriteLengthEncodedString(value.AsSpan());