openPDC Synchrophasor Help
ChecksumIsValid Method (buffer, startIndex, length)
NamespacesTVA.PhasorProtocols.Ieee1344CommonFrameHeaderChecksumIsValid(array<Byte>[]()[][], Int32, Int32)
Validates the CRC-CCITT for the specified IEEE 1344 buffer.
Declaration Syntax
C#Visual BasicVisual C++
public static bool ChecksumIsValid(
	byte[] buffer,
	int startIndex,
	int length
)
Public Shared Function ChecksumIsValid ( _
	buffer As Byte(), _
	startIndex As Integer, _
	length As Integer _
) As Boolean
public:
static bool ChecksumIsValid(
	array<unsigned char>^ buffer, 
	int startIndex, 
	int length
)
Parameters
buffer (array<Byte>[]()[][])
A Byte array buffer.
startIndex (Int32)
An Int32 value as the start index into being reading the value at.
length (Int32)
An Int32 value as the number of bytes to read for the checksum.
Return Value
A Boolean indicating whether the checksum is valid.

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