Click or drag to resize

CreateNewValueFunctionTDefinition, TValue Delegate

Defines function signature for creating new IChannelValueT objects.

Namespace: GSF.PhasorProtocols
Assembly: GSF.PhasorProtocols (in GSF.PhasorProtocols.dll) Version: 2.4.218-beta
Syntax
public delegate TValue CreateNewValueFunction<TDefinition, TValue>(
	IDataCell parent,
	TDefinition definition,
	byte[] buffer,
	int startIndex,
	out int parsedLength
)
where TDefinition : IChannelDefinition
where TValue : Object, IChannelValue<TDefinition>

Parameters

parent  IDataCell
Reference to parent IDataCell.
definition  TDefinition
Reference to associated IChannelDefinition object.
buffer  Byte
Binary image to parse IChannelValueT from.
startIndex  Int32
Start index into buffer to begin parsing.
parsedLength  Int32
Returns the total number of bytes parsed from buffer.

Type Parameters

TDefinition
Specific IChannelDefinition type that the IChannelValueT references.
TValue
Specific IChannelValueT type that the CreateNewValueFunctionTDefinition, TValue creates.

Return Value

TValue
New IChannelValueT object.
See Also