C# Класс Tempest.TypeMap

Represents a map of Types to identifiers for shorter bitstream references.
Наследование: ISerializable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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