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
Ordering
- Alphabetic
- By Inheritance
Inherited
- Crc16
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Crc16(crc: Int)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val crc: Int
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def toString(): String
- Definition Classes
- Crc16 → Any
- def verify(str: String): Boolean
- def verify(buf: ByteBuffer): Boolean
- def verify(data: Array[Byte]): Boolean
- def verify(data: Array[Byte], off: Int, len: Int): Boolean