OctoTorrent.Client.Peer.Encode C# (CSharp) Method

Encode() static private method

static private Encode ( IEnumerable peers ) : BEncodedList
peers IEnumerable
return BEncodedList
        internal static BEncodedList Encode(IEnumerable<Peer> peers)
        {
            var list = new BEncodedList();
            foreach (var p in peers)
                list.Add((BEncodedString)p.CompactPeer());
            return list;
        }