C# 클래스 Tempest.TypeMap

Represents a map of Types to identifiers for shorter bitstream references.
상속: ISerializable
파일 보기 프로젝트 열기: ermau/Tempest 1 사용 예제들

공개 메소드들

메소드 설명
Deserialize ( ISerializationContext context, IValueReader reader ) : void
GetTypeId ( Type type, ushort &id ) : bool

Attempts to get the id of the type, or assigns a new one.

Serialize ( ISerializationContext context, IValueWriter writer ) : void
TryGetNewTypes ( ushort>.IList &types ) : bool

Gets the Types and their IDs that have been added since TryGetNewTypes was last called.

TryGetType ( ushort id, Type &type ) : bool

Attempts to get the type for id.

TypeMap ( ) : System
TypeMap ( ushort>.IDictionary mapping ) : System

비공개 메소드들

메소드 설명
TypeMap ( ushort>.Dictionary mapping ) : System

메소드 상세

Deserialize() 공개 메소드

public Deserialize ( ISerializationContext context, IValueReader reader ) : void
context ISerializationContext
reader IValueReader
리턴 void

GetTypeId() 공개 메소드

Attempts to get the id of the type, or assigns a new one.
is null.
public GetTypeId ( Type type, ushort &id ) : bool
type System.Type The type to lookup the for.
id ushort The id of the .
리턴 bool

Serialize() 공개 메소드

public Serialize ( ISerializationContext context, IValueWriter writer ) : void
context ISerializationContext
writer IValueWriter
리턴 void

TryGetNewTypes() 공개 메소드

Gets the Types and their IDs that have been added since TryGetNewTypes was last called.
public TryGetNewTypes ( ushort>.IList &types ) : bool
types ushort>.IList
리턴 bool

TryGetType() 공개 메소드

Attempts to get the type for id.
public TryGetType ( ushort id, Type &type ) : bool
id ushort The id to search for.
type System.Type The type, if found.
리턴 bool

TypeMap() 공개 메소드

public TypeMap ( ) : System
리턴 System

TypeMap() 공개 메소드

public TypeMap ( ushort>.IDictionary mapping ) : System
mapping ushort>.IDictionary
리턴 System