C# Class CSL.BEncoding

Afficher le fichier Open project: joslinm/CSL

Méthodes publiques

Méthode 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

Méthode Description
decode_bytes ( byte x, int &f ) : byte[]
decode_int ( byte x, int &f ) : int

Method Details

Decode() public static méthode

public static Decode ( FileInfo fi ) : object
fi System.IO.FileInfo
Résultat object

Decode() public static méthode

public static Decode ( byte message ) : object
message byte
Résultat object

Decode() public static méthode

public static Decode ( string message ) : object
message string
Résultat object

Encode() public static méthode

public static Encode ( object x ) : byte[]
x object
Résultat byte[]

bdecode_rec() public static méthode

public static bdecode_rec ( byte x, int &f ) : object
x byte
f int
Résultat object

bencode_rec() public static méthode

public static bencode_rec ( object x, MemoryStream sw ) : void
x object
sw System.IO.MemoryStream
Résultat void

decode_dict() public static méthode

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

decode_list() public static méthode

public static decode_list ( byte x, int &f ) : object
x byte
f int
Résultat object

decode_string() public static méthode

public static decode_string ( byte x, int &f ) : string
x byte
f int
Résultat string