C# Class Akka.Remote.Serialization.MessageContainerSerializer

Inheritance: Akka.Serialization.Serializer
Afficher le fichier Open project: rogeralsing/akka.net Class Usage Examples

Méthodes publiques

Méthode Description
FromBinary ( byte bytes, Type type ) : object

Deserializes a byte array into an object of type type.

MessageContainerSerializer ( ExtendedActorSystem system ) : System

Initializes a new instance of the MessageContainerSerializer class.

ToBinary ( object obj ) : byte[]

Serializes the given object into a byte array

Private Methods

Méthode Description
BuildPattern ( string matcher, PatternType tpe ) : Selection.Builder
Deserialize ( ByteString bytes, Type type, int serializerId ) : object
Serialize ( object obj ) : ByteString
SerializeActorSelectionMessage ( ActorSelectionMessage sel ) : byte[]

Method Details

FromBinary() public méthode

Deserializes a byte array into an object of type type.
Unknown SelectionEnvelope.Elements.Type
public 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
Résultat object

MessageContainerSerializer() public méthode

Initializes a new instance of the MessageContainerSerializer class.
public MessageContainerSerializer ( ExtendedActorSystem system ) : System
system ExtendedActorSystem The actor system to associate with this serializer.
Résultat System

ToBinary() public méthode

Serializes the given object into a byte array
Object must be of type
public ToBinary ( object obj ) : byte[]
obj object The object to serialize
Résultat byte[]