Author: alanmc
Date: 2006-09-10 08:56:54 -0400 (Sun, 10 Sep 2006)
New Revision: 65166
Modified:
branches/BitSharp/bitsharp/src/MonoTorrent.Common/BEncode/BEncodedString.cs
Log:
I'm pretty sure LengthInBytes is broken... will write an NUnit test to check
Modified:
branches/BitSharp/bitsharp/src/MonoTorrent.Common/BEncode/BEncodedString.cs
===================================================================
--- branches/BitSharp/bitsharp/src/MonoTorrent.Common/BEncode/BEncodedString.cs
2006-09-10 12:56:07 UTC (rev 65165)
+++ branches/BitSharp/bitsharp/src/MonoTorrent.Common/BEncode/BEncodedString.cs
2006-09-10 12:56:54 UTC (rev 65166)
@@ -291,6 +291,7 @@
public int LengthInBytes(Encoding e)
{
+#warning This isn't right.
string output = this.textBytes.Length.ToString() + ":" +
e.GetString(this.textBytes);
int count = 0;
count += e.GetByteCount(this.textBytes.Length.ToString());
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches