/// <summary> /// Computes a CRC 16 CCITT of the provided bytes using an intial value of 0x1D0F /// </summary> /// <param name="bytes">The buffer to compute the CRC upon</param> /// <param name="start">The start index upon which to compute the CRC</param> /// <param name="length">The length of the buffer upon which to compute the CRC</param> /// <returns>The specified CRC</returns> public static ushort ComputeChecksum(byte[] bytes, int start, int length) { return(CrcCcittBase.ComputeChecksum(InitialValue, bytes, start, length)); }
/// <summary> /// Computes a CRC 16 CCITT of the provided bytes using an intial value of 0x1D0F /// </summary> /// <param name="bytes">bytes to crc</param> /// <returns>the CRC 16 CCITT of the provided bytes</returns> public static ushort ComputeChecksum(params byte[] bytes) { return(CrcCcittBase.ComputeChecksum(InitialValue, bytes)); }