Gemstone PhasorProtocols Library
Show/Hide TOC

# ConfigurationFrame1CalculateChecksum Method

Calculates checksum of given buffer.

## Definition

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

    protected override ushort CalculateChecksum(
    	byte[] buffer,
    	int offset,
    	int length
    )

VB
View Source Request Example

    Protected Overrides Function CalculateChecksum (
    	buffer As Byte(),
    	offset As Integer,
    	length As Integer
    ) As UShort

C++
View Source Request Example

    protected:
    virtual unsigned short CalculateChecksum(
    	array<unsigned char>^ buffer,
    	int offset,
    	int length
    ) override

JavaScript
View Source Request Example

    function CalculateChecksum(buffer, offset, length);

#### Parameters

buffer Byte
  Buffer image over which to calculate checksum.
offset Int32
  Start index into buffer to calculate checksum.
length Int32
  Length of data within buffer to calculate checksum.

#### Return Value

UInt16
Checksum over specified portion of buffer.

## See Also

#### Reference

ConfigurationFrame1 Class
Gemstone.PhasorProtocols.IEEEC37_118 Namespace