C# Class rencodesharp.Rencode

Exibir arquivo Open project: voltagex/junkcode

Public Methods

Method Description
Decode ( byte x ) : object

Decode rencode bytes 'x' into object.

Decode ( string x ) : object

Decode rencode string 'x' into object.

Encode ( object x ) : string

Encode object 'x' into a rencode string.

Private Methods

Method Description
DecodeBoolFalse ( string x, int startIndex, int &endIndex ) : object
DecodeBoolTrue ( string x, int startIndex, int &endIndex ) : object
DecodeDictionary ( string x, int startIndex, int &endIndex ) : object
DecodeDouble ( string x, int startIndex, int &endIndex ) : object
DecodeFixedDictionary ( string x, int startIndex, int &endIndex ) : object
DecodeFixedList ( string x, int startIndex, int &endIndex ) : object
DecodeFixedNegativeInt ( string x, int startIndex, int &endIndex ) : object
DecodeFixedPositiveInt ( string x, int startIndex, int &endIndex ) : object
DecodeFixedString ( string x, int startIndex, int &endIndex ) : object
DecodeFloat ( string x, int startIndex, int &endIndex ) : object
DecodeInt ( string x, int startIndex, int &endIndex ) : object
DecodeInt1 ( string x, int startIndex, int &endIndex ) : object
DecodeInt2 ( string x, int startIndex, int &endIndex ) : object
DecodeInt4 ( string x, int startIndex, int &endIndex ) : object
DecodeInt8 ( string x, int startIndex, int &endIndex ) : object
DecodeList ( string x, int startIndex, int &endIndex ) : object
DecodeNull ( string x, int startIndex, int &endIndex ) : object
DecodeObject ( string x, int startIndex, int &endIndex ) : object
DecodeString ( string x, int startIndex, int &endIndex ) : string
EncodeBool ( object x, List dest ) : void
EncodeDictionary ( object x, List dest ) : void
EncodeDouble ( object x, List dest ) : void
EncodeFloat ( object x, List dest ) : void
EncodeInt ( object x, List dest ) : void
EncodeList ( object x, List dest ) : void
EncodeObject ( object x, List dest ) : void
EncodeString ( object x, List dest ) : void
Rencode ( ) : System
encode_null ( object x, List dest ) : void

Method Details

Decode() public static method

Decode rencode bytes 'x' into object.
public static Decode ( byte x ) : object
x byte
return object

Decode() public static method

Decode rencode string 'x' into object.
public static Decode ( string x ) : object
x string
return object

Encode() public static method

Encode object 'x' into a rencode string.
public static Encode ( object x ) : string
x object
return string