public static void WriteLengthEncodedStringOld(this ByteBufferWriter writer, StringBuilder builder) { writer.WriteLengthEncodedString(builder.ToString()); }
public static void WriteNullTerminatedString(this ByteBufferWriter writer, string value) { writer.Write(value); writer.Write((byte)0); }
public static void WriteLengthEncodedString(this ByteBufferWriter writer, string value) => writer.WriteLengthEncodedString(value.AsSpan());