Table of Contents

Class NitroCrcGenerator

Namespace
SceneGate.Ekona.Security
Assembly
SceneGate.Ekona.dll

Generate CRC compatible with Nitro devices.

public class NitroCrcGenerator
Inheritance
NitroCrcGenerator
Inherited Members

Methods

GenerateCrc16(Stream)

Generate a CRC16-MODBUS of the data.

public byte[] GenerateCrc16(Stream stream)

Parameters

stream Stream

The data to read.

Returns

byte[]

The CRC of the data in little endian.

GenerateCrc16(Stream, long, long)

Generate a CRC16-MODBUS of the data.

public byte[] GenerateCrc16(Stream stream, long offset, long length)

Parameters

stream Stream

The data to read.

offset long

The offset to start reading data.

length long

The length of the data.

Returns

byte[]

The CRC of the data in little endian.