C# Класс Akka.Serialization.Serializer

Class Serializer.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
system ExtendedActorSystem

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

Метод Описание
FromBinary ( byte bytes, Type type ) : object

Deserializes a byte array into an object of type type.

Serializer ( ExtendedActorSystem system ) : System

Initializes a new instance of the Serializer class.

ToBinary ( object obj ) : byte[]

Serializes the given object into a byte array

ToBinaryWithAddress ( Akka.Actor.Address address, object obj ) : byte[]

Serializes the given object into a byte array and uses the given address to decorate serialized ActorRef's

Защищенные методы

Метод Описание
TypeQualifiedNameForManifest ( Type type ) : string

Utility to be used by implementors to create a manifest from the type. The manifest is used to look up the type on deserialization. Returns the type qualified name including namespace and assembly, but not assembly version.

See Type.GetType(string) for details on how a type is looked up from a name. In particular, if the (partial) assembly name is not included only the assembly calling Type.GetType(string) is searched. If the (partial) assembly name is included, it searches in the specified assembly.

Описание методов

FromBinary() публичный абстрактный Метод

Deserializes a byte array into an object of type type.
public abstract FromBinary ( byte bytes, Type type ) : object
bytes byte The array containing the serialized object
type System.Type The type of object contained in the array
Результат object

Serializer() публичный Метод

Initializes a new instance of the Serializer class.
public Serializer ( ExtendedActorSystem system ) : System
system ExtendedActorSystem The actor system to associate with this serializer.
Результат System

ToBinary() публичный абстрактный Метод

Serializes the given object into a byte array
public abstract ToBinary ( object obj ) : byte[]
obj object The object to serialize
Результат byte[]

ToBinaryWithAddress() публичный Метод

Serializes the given object into a byte array and uses the given address to decorate serialized ActorRef's
public ToBinaryWithAddress ( Akka.Actor.Address address, object obj ) : byte[]
address Akka.Actor.Address The address to use when serializing local ActorRef´s
obj object The object to serialize
Результат byte[]

TypeQualifiedNameForManifest() защищенный статический Метод

Utility to be used by implementors to create a manifest from the type. The manifest is used to look up the type on deserialization. Returns the type qualified name including namespace and assembly, but not assembly version.
See Type.GetType(string) for details on how a type is looked up from a name. In particular, if the (partial) assembly name is not included only the assembly calling Type.GetType(string) is searched. If the (partial) assembly name is included, it searches in the specified assembly.
protected static TypeQualifiedNameForManifest ( Type type ) : string
type System.Type
Результат string

Описание свойств

system защищенное свойство

The actor system to associate with this serializer.
protected ExtendedActorSystem system
Результат ExtendedActorSystem