Table of Contents

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

DataType

Name

Name.

string Name { get; }

Property Value

string

Version

Version of data format.

Version Version { get; }

Property Value

Version

Methods

Deserialize(Version, byte[])

Deserialize message from byte array.

TMessage Deserialize(Version version, byte[] buffer)

Parameters

version Version

Version of data format.

buffer byte[]

Byte array.

Returns

TMessage

Message.

GetKey(TMessage)

Get key for the specified message.

TKey GetKey(TMessage message)

Parameters

message TMessage

Message.

Returns

TKey

Key.

Serialize(Version, TMessage)

Serialize the specified message to byte array.

byte[] Serialize(Version version, TMessage message)

Parameters

version Version

Version of data format.

message TMessage

Message.

Returns

byte[]

Byte array.

Update(TMessage, TMessage)

Update the specified message by new changes.

void Update(TMessage message, TMessage changes)

Parameters

message TMessage

Message.

changes TMessage

Changes.