C# 클래스 KRPC.Client.Encoder

파일 보기 프로젝트 열기: krpc/krpc

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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

메소드 상세

Encode() 공개 정적인 메소드

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
리턴 ByteString

EncodeClientName() 공개 정적인 메소드

Encode a client name.
public static EncodeClientName ( string name ) : byte[]
name string
리턴 byte[]