Class CrcExtensions
Inheritance
System.Object
CrcExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: NModbus.Extensions
Assembly: NModbus.dll
Syntax
public static class CrcExtensions
Methods
| Improve this Doc View SourceDoesCrcMatch(Byte[])
Determines whether the crc stored in the message matches the calculated crc.
Declaration
public static bool DoesCrcMatch(this byte[] message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | message |
Returns
| Type | Description |
|---|---|
| System.Boolean |
GetCRC(Byte[])
Gets the CRC of the message
Declaration
public static ushort GetCRC(this byte[] message)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | message |
Returns
| Type | Description |
|---|---|
| System.UInt16 |