CommonEncodeTagValueT(T, SampledValueTag, Byte, Int32) Method

Encodes primitive type sampled value tag.

Definition

Namespace: Gemstone.PhasorProtocols.IEC61850_90_5
Assembly: Gemstone.PhasorProtocols (in Gemstone.PhasorProtocols.dll) Version: 1.0.166 -- Release Build+4f9601ce2fc7721cafe5edaeacb540e40faa3f58
public static void EncodeTagValue<T>(
	this T value,
	SampledValueTag tag,
	byte[] buffer,
	ref int index
)
where T : struct, new(), IConvertible

Parameters

value  T
Value to encode.
tag  SampledValueTag
Sampled value tag to encode.
buffer  Byte
Buffer to hold encoded sampled value.
index  Int32
Start index of buffer where tag will begin - will be auto-incremented.

Type Parameters

T
Type of value to encode.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type T. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also