BencodeEditor/Bencoding encoder and decoder.cs
/// <summary>
/// Generates the bencoded equivalent of the list.
/// </summary>
/// <param name="u">The StringBuilder to append to.</param>
/// <returns>The bencoded equivalent of the list.</returns>
Generates the bencoded equivalent of the list.
Generates the bencoded equivalent of the list .
public StringBuilder ToBencodedString(StringBuilder u)
		{
			if (u == null) u = new StringBuilder('l');
			else u.Append('l');
			foreach (BElement element in base.ToArray())
			{
				element.ToBencodedString(u);
			}
			return u.Append('e');
		}
public StringBuilder ToBencodedString ( StringBuilder u ) { if ( u == null ) u = new StringBuilder ( ' ' ) ; else u . Append ( ' ' ) ; foreach ( BElement element in base . ToArray ( ) ) { element . ToBencodedString ( u ) ; } return u . Append ( ' ' ) ; }
Generates the bencoded equivalent of the list.
Generates the bencoded equivalent of the list .
The bencoded equivalent of the list.
The bencoded equivalent of the list .
u
StringBuilder
The StringBuilder to append to.
The StringBuilder to append to .