final class Crc16 extends AnyVal

CRC-16 CCITT (X.25 variant) as used by the Qt function qChecksum

polynomial 0x1021 (x0 + x5 + x12 + x16) with init=0xffff and final XOR with 0xffff

see http://reveng.sourceforge.net/crc-catalogue/16.htm#crc.cat.x-25 for the entry in the "CRC Catalogue"

precomputed lookup table borrowed from the Linux kernel sources https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/lib/crc-ccitt.c

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Crc16
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Crc16(crc: Int)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##: Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val crc: Int
  6. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  7. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  8. def toString(): String
    Definition Classes
    Crc16 → Any
  9. def verify(str: String): Boolean
  10. def verify(buf: ByteBuffer): Boolean
  11. def verify(data: Array[Byte]): Boolean
  12. def verify(data: Array[Byte], off: Int, len: Int): Boolean

Inherited from AnyVal

Inherited from Any

Ungrouped