C# Class CSL.BEncoding

Show file Open project: joslinm/CSL

Public Methods

Method Description
Decode ( FileInfo fi ) : object
Decode ( byte message ) : object
Decode ( string message ) : object
Encode ( object x ) : byte[]
bdecode_rec ( byte x, int &f ) : object
bencode_rec ( object x, MemoryStream sw ) : void
decode_dict ( byte x, int &f ) : ListDictionary
decode_list ( byte x, int &f ) : object
decode_string ( byte x, int &f ) : string

Private Methods

Method Description
decode_bytes ( byte x, int &f ) : byte[]
decode_int ( byte x, int &f ) : int

Method Details

Decode() public static method

public static Decode ( FileInfo fi ) : object
fi System.IO.FileInfo
return object

Decode() public static method

public static Decode ( byte message ) : object
message byte
return object

Decode() public static method

public static Decode ( string message ) : object
message string
return object

Encode() public static method

public static Encode ( object x ) : byte[]
x object
return byte[]

bdecode_rec() public static method

public static bdecode_rec ( byte x, int &f ) : object
x byte
f int
return object

bencode_rec() public static method

public static bencode_rec ( object x, MemoryStream sw ) : void
x object
sw System.IO.MemoryStream
return void

decode_dict() public static method

public static decode_dict ( byte x, int &f ) : ListDictionary
x byte
f int
return System.Collections.Specialized.ListDictionary

decode_list() public static method

public static decode_list ( byte x, int &f ) : object
x byte
f int
return object

decode_string() public static method

public static decode_string ( byte x, int &f ) : string
x byte
f int
return string