C# Class GSF.TimeSeries.Transport.SignalIndexCache

Inheritance: ISupportBinaryImage
Datei anzeigen Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Methods

Method Description
GenerateBinaryImage ( byte buffer, int startIndex ) : int

Generates binary image of the SignalIndexCache and copies it into the given buffer, for BinaryLength bytes.

GetSignalIndex ( MeasurementKey key ) : ushort

Gets runtime signal index for given Guid signal ID.

ParseBinaryImage ( byte buffer, int startIndex, int length ) : int

Initializes the SignalIndexCache by parsing the specified buffer containing a binary image.

SignalIndexCache ( ) : System

Creates a new SignalIndexCache instance.

SignalIndexCache ( DataSet dataSource, SignalIndexCache remoteCache ) : System

Creates a new local system cache from one that was received remotely.

Method Details

GenerateBinaryImage() public method

Generates binary image of the SignalIndexCache and copies it into the given buffer, for BinaryLength bytes.
public GenerateBinaryImage ( byte buffer, int startIndex ) : int
buffer byte Buffer used to hold generated binary image of the source object.
startIndex int 0-based starting index in the to start writing.
return int

GetSignalIndex() public method

Gets runtime signal index for given Guid signal ID.
public GetSignalIndex ( MeasurementKey key ) : ushort
key MeasurementKey The used to lookup associated runtime signal index.
return ushort

ParseBinaryImage() public method

Initializes the SignalIndexCache by parsing the specified buffer containing a binary image.
public ParseBinaryImage ( byte buffer, int startIndex, int length ) : int
buffer byte Buffer containing binary image to parse.
startIndex int 0-based starting index in the to start parsing.
length int Valid number of bytes within to read from .
return int

SignalIndexCache() public method

Creates a new SignalIndexCache instance.
public SignalIndexCache ( ) : System
return System

SignalIndexCache() public method

Creates a new local system cache from one that was received remotely.
public SignalIndexCache ( DataSet dataSource, SignalIndexCache remoteCache ) : System
dataSource System.Data.DataSet based data source used to interpret local measurement keys.
remoteCache SignalIndexCache Deserialized remote signal index cache.
return System