Class Crc16

java.lang.Object
ch.qos.logback.core.kryo.Crc16

public final class Crc16 extends Object
CRC-16/CCITT-FALSE (poly=0x1021, init=0xFFFF, no xorout, unreflected).

Known vector: "123456789" → 0x29B1.

One payload byte is one table lookup, not an 8-step bit loop.

  • Field Details

  • Constructor Details

  • Method Details

    • update

      public void update(int b)
    • update

      public void update(byte[] data)
    • update

      public void update(byte[] data, int off, int len)
    • getValue

      public int getValue()
    • of

      public static int of(byte[] data)