openPDC Synchrophasor Help
AppendChecksum Method (buffer, startIndex)
NamespacesTVA.PhasorProtocols.MacrodyneHeaderFrameAppendChecksum(array<Byte>[]()[][], Int32)
Appends checksum onto buffer starting at startIndex.
Declaration Syntax
C#Visual BasicVisual C++
protected override void AppendChecksum(
	byte[] buffer,
	int startIndex
)
Protected Overrides Sub AppendChecksum ( _
	buffer As Byte(), _
	startIndex As Integer _
)
protected:
virtual void AppendChecksum(
	array<unsigned char>^ buffer, 
	int startIndex
) override
Parameters
buffer (array<Byte>[]()[][])
Buffer image on which to append checksum.
startIndex (Int32)
Index into buffer where checksum should be appended.
Remarks
Default implementation encodes checksum in big-endian order and expects buffer size large enough to accomodate 2-byte checksum representation. We override this method since checksum in Macrodyne is a single byte.

Assembly: TVA.PhasorProtocols (Module: TVA.PhasorProtocols) Version: 1.4.192.0