C# Class Akka.Persistence.Serialization.SnapshotSerializer

Inheritance: Akka.Serialization.Serializer
Mostra file Open project: rogeralsing/akka.net

Public Methods

Method Description
FromBinary ( byte bytes, Type type ) : object

Deserializes a Snapshot. Delegates deserialization of snapshot data to a matching Serializer

SnapshotSerializer ( ExtendedActorSystem system ) : System
ToBinary ( object obj ) : byte[]

Serializes a Snapshot. Delegates serialization of snapshot data to a matching Serializer

Private Methods

Method Description
GetTransportInformation ( ) : Akka.Serialization.Information
ParseSnapshotHeader ( ArraySegment headerBytes ) : SnapshotHeader
ReadInt ( MemoryStream buffer ) : int
Serialize ( object snapshot ) : byte[]
SnapshotFromBinary ( byte bytes ) : object
SnapshotToBinary ( object snapshot ) : byte[]
WriteInt ( MemoryStream buffer, int i ) : void

Method Details

FromBinary() public method

Deserializes a Snapshot. Delegates deserialization of snapshot data to a matching Serializer
public FromBinary ( byte bytes, Type type ) : object
bytes byte
type System.Type
return object

SnapshotSerializer() public method

public SnapshotSerializer ( ExtendedActorSystem system ) : System
system ExtendedActorSystem
return System

ToBinary() public method

Serializes a Snapshot. Delegates serialization of snapshot data to a matching Serializer
public ToBinary ( object obj ) : byte[]
obj object
return byte[]