|
CommonEncodeTagValueT(T, SampledValueTag, Byte, Int32) Method
|
Encodes primitive type sampled value tag.
Namespace: GSF.PhasorProtocols.IEC61850_90_5Assembly: GSF.PhasorProtocols (in GSF.PhasorProtocols.dll) Version: 2.4.249-beta
Syntaxpublic static void EncodeTagValue<T>(
this T value,
SampledValueTag tag,
byte[] buffer,
ref int index
)
where T : struct, new(), IConvertible
<ExtensionAttribute>
Public Shared Sub EncodeTagValue(Of T As {Structure, New, IConvertible}) (
value As T,
tag As SampledValueTag,
buffer As Byte(),
ByRef index As Integer
)
public:
[ExtensionAttribute]
generic<typename T>
where T : value class, gcnew(), IConvertible
static void EncodeTagValue(
T value,
SampledValueTag tag,
array<unsigned char>^ buffer,
int% index
)
[<ExtensionAttribute>]
static member EncodeTagValue :
value : 'T *
tag : SampledValueTag *
buffer : byte[] *
index : int byref -> unit when 'T : struct, new() and IConvertible
JavaScript does not support generic types or methods.
View SourceParameters
- 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
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