Gemstone PhasorProtocols Library
Show/Hide TOC

# CommonFrameHeaderChecksumIsValid Method

Validates the CRC-CCITT for the specified IEEE C37.118 buffer.

## Definition

Namespace: Gemstone.PhasorProtocols.IEEEC37_118
Assembly: Gemstone.PhasorProtocols (in Gemstone.PhasorProtocols.dll) Version: 1.0.178 -- Release Build+f2b94d09f81a61f5d7415b9db3fd60b6ae3f7e12
C#
View Source Request Example

    public static bool ChecksumIsValid(
    	byte[] buffer,
    	int startIndex,
    	int length
    )

VB
View Source Request Example

    Public Shared Function ChecksumIsValid (
    	buffer As Byte(),
    	startIndex As Integer,
    	length As Integer
    ) As Boolean

C++
View Source Request Example

    public:
    static bool ChecksumIsValid(
    	array<unsigned char>^ buffer,
    	int startIndex,
    	int length
    )

JavaScript
View Source Request Example

    Gemstone.PhasorProtocols.IEEEC37_118.CommonFrameHeader.ChecksumIsValid = function(buffer, startIndex, length);

#### Parameters

buffer 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

Boolean
A Boolean indicating whether the checksum is valid.

## See Also

#### Reference

CommonFrameHeader Class
Gemstone.PhasorProtocols.IEEEC37_118 Namespace