Interface ISnapshotSerializer<TKey, TMessage>
- Namespace
- StockSharp.Algo.Storages
- Assembly
- StockSharp.Algo.dll
The interface for serialize snapshots.
public interface ISnapshotSerializer<TKey, TMessage> where TMessage : Message
Type Parameters
TKey
Type of key value.
TMessage
Message type.
- Extension Methods
Properties
DataType
Data type info.
DataType DataType { get; }
Property Value
Name
Name.
string Name { get; }
Property Value
Version
Version of data format.
Version Version { get; }
Property Value
Methods
Deserialize(Version, byte[])
Deserialize message from byte array.
TMessage Deserialize(Version version, byte[] buffer)
Parameters
Returns
- TMessage
Message.
GetKey(TMessage)
Get key for the specified message.
TKey GetKey(TMessage message)
Parameters
message
TMessageMessage.
Returns
- TKey
Key.
Serialize(Version, TMessage)
Serialize the specified message to byte array.
byte[] Serialize(Version version, TMessage message)
Parameters
version
VersionVersion of data format.
message
TMessageMessage.
Returns
- byte[]
Byte array.
Update(TMessage, TMessage)
Update the specified message by new changes.
void Update(TMessage message, TMessage changes)
Parameters
message
TMessageMessage.
changes
TMessageChanges.