Class CRC16XModem

java.lang.Object
org.miaixz.bus.core.io.check.crc16.CRC16Checksum
org.miaixz.bus.core.io.check.crc16.CRC16XModem
All Implemented Interfaces:
Serializable, Checksum

public class CRC16XModem extends CRC16Checksum
CRC-CCITT (XModem) CRC16_XMODEM:多项式x16+x12+x5+1(0x1021),初始值0x0000,低位在后,高位在前,结果与0x0000异或
Since:
Java 17+
Author:
Kimi Liu
See Also:
  • Constructor Details

    • CRC16XModem

      public CRC16XModem()
  • Method Details

    • update

      public void update(byte[] b, int off, int len)
      Specified by:
      update in interface Checksum
      Overrides:
      update in class CRC16Checksum
    • update

      public void update(int b)