C# Class Akka.Serialization.ByteArraySerializer

This is a special Serializer that serializes and deserializes byte arrays only (just returns the byte array unchanged/uncopied).
Inheritance: Serializer
Afficher le fichier Open project: rogeralsing/akka.net

Méthodes publiques

Méthode Description
ByteArraySerializer ( ExtendedActorSystem system ) : System

Initializes a new instance of the ByteArraySerializer class.

FromBinary ( byte bytes, Type type ) : object

Deserializes a byte array into an object of type type.

ToBinary ( object obj ) : byte[]

Serializes the given object into a byte array

Method Details

ByteArraySerializer() public méthode

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

FromBinary() public méthode

Deserializes a byte array into an object of type 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

ToBinary() public méthode

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