C# Class Tempest.TypeMap

Represents a map of Types to identifiers for shorter bitstream references.
Inheritance: ISerializable
Afficher le fichier Open project: ermau/Tempest Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode Description
TypeMap ( ushort>.Dictionary mapping ) : System

Method Details

Deserialize() public méthode

public Deserialize ( ISerializationContext context, IValueReader reader ) : void
context ISerializationContext
reader IValueReader
Résultat void

GetTypeId() public méthode

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 .
Résultat bool

Serialize() public méthode

public Serialize ( ISerializationContext context, IValueWriter writer ) : void
context ISerializationContext
writer IValueWriter
Résultat void

TryGetNewTypes() public méthode

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

TryGetType() public méthode

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.
Résultat bool

TypeMap() public méthode

public TypeMap ( ) : System
Résultat System

TypeMap() public méthode

public TypeMap ( ushort>.IDictionary mapping ) : System
mapping ushort>.IDictionary
Résultat System