openPDC Synchrophasor Help
ChecksumIsValid Method (buffer, startIndex)
NamespacesTVA.PhasorProtocols.MacrodyneDataFrameChecksumIsValid(array<Byte>[]()[][], Int32)
Determines if checksum in the buffer is valid.
Declaration Syntax
C#Visual BasicVisual C++
protected override bool ChecksumIsValid(
	byte[] buffer,
	int startIndex
)
Protected Overrides Function ChecksumIsValid ( _
	buffer As Byte(), _
	startIndex As Integer _
) As Boolean
protected:
virtual bool ChecksumIsValid(
	array<unsigned char>^ buffer, 
	int startIndex
) override
Parameters
buffer (array<Byte>[]()[][])
Buffer image to validate.
startIndex (Int32)
Start index into buffer to perform checksum.
Return Value
Flag that determines if checksum over buffer is valid.
Remarks
Default implementation expects 2-byte big-endian ordered checksum. So we override method since checksum in Macrodyne is a single byte.

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