Click or drag to resize

ChannelFrameBaseTChecksumIsValid Method

Determines if checksum in the buffer is valid.

Namespace: GSF.PhasorProtocols
Assembly: GSF.PhasorProtocols (in GSF.PhasorProtocols.dll) Version: 2.4.181-beta
Syntax
protected virtual bool ChecksumIsValid(
	byte[] buffer,
	int startIndex
)
View Source

Parameters

buffer  Byte
Buffer image to validate.
startIndex  Int32
Start index into buffer to perform checksum.

Return Value

Boolean
Flag that determines if checksum over buffer is valid.
Remarks
Default implementation expects 2-byte big-endian ordered checksum. Override method if protocol checksum implementation is different.
See Also