BEncodeLib.BEncoder.Bencode C# (CSharp) Method

Bencode() public static method

public static Bencode ( object>.IDictionary map, Stream s ) : void
map object>.IDictionary
s Stream
return void
        public static void Bencode(IDictionary<object, object> map, Stream s)
        {
            s.WriteByte(MapMarker);

            var keys = map.Keys;
            foreach (var key in keys)
            {
                Bencode((string)key, s);
                Bencode(map[key], s);
            }

            s.WriteByte(EndMarker);
        }

Same methods

BEncoder::Bencode ( IList list, Stream s ) : void
BEncoder::Bencode ( byte b, Stream s ) : void
BEncoder::Bencode ( long n, Stream s ) : void
BEncoder::Bencode ( object o, Stream s ) : void
BEncoder::Bencode ( string str, Stream s ) : void
BEncoder