CSL.BEncoding.Encode C# (CSharp) Method

Encode() public static method

public static Encode ( object x ) : byte[]
x object
return byte[]
        public static byte[] Encode(object x)
        {
            MemoryStream ms = new MemoryStream();
            bencode_rec(x, ms);
            return ms.ToArray();
        }