C# Class KRPC.Client.Encoder

Afficher le fichier Open project: krpc/krpc

Méthodes publiques

Méthode Description
Encode ( object value, Type type ) : ByteString

Encode an object of the given type using the protocol buffer encoding scheme. Should not be called directly. This interface is used by service client stubs.

EncodeClientName ( string name ) : byte[]

Encode a client name.

Private Methods

Méthode Description
Decode ( ByteString value, Type type, IConnection client ) : object
DecodeDictionary ( CodedInputStream stream, Type type, IConnection client ) : object
DecodeList ( CodedInputStream stream, Type type, IConnection client ) : object
DecodeSet ( CodedInputStream stream, Type type, IConnection client ) : object
DecodeTuple ( CodedInputStream stream, Type type, IConnection client ) : object
EncodeObject ( object value, Type type, MemoryStream buffer, CodedOutputStream stream ) : ByteString
IsAClassType ( Type type ) : bool
IsACollectionType ( Type type ) : bool
IsADictionaryType ( Type type ) : bool
IsAGenericType ( Type type, Type genericType ) : bool
IsAListType ( Type type ) : bool
IsAMessageType ( Type type ) : bool
IsASetType ( Type type ) : bool
IsATupleType ( Type type ) : bool
WriteDictionary ( object value, Type type, Stream stream ) : void
WriteList ( object value, Type type, Stream stream ) : void
WriteSet ( object value, Type type, Stream stream ) : void
WriteTuple ( object value, Type type, Stream stream ) : void

Method Details

Encode() public static méthode

Encode an object of the given type using the protocol buffer encoding scheme. Should not be called directly. This interface is used by service client stubs.
public static Encode ( object value, Type type ) : ByteString
value object
type System.Type
Résultat ByteString

EncodeClientName() public static méthode

Encode a client name.
public static EncodeClientName ( string name ) : byte[]
name string
Résultat byte[]