for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace PBurggraf\CRC\CRC16;
/**
* @author Philip Burggraf <[email protected]>
*
* @see \PBurggraf\CRC\CRC16\CRCB
* @see \PBurggraf\CRC\CRC16\ISOHDLC
* @see \PBurggraf\CRC\CRC16\ISOIEC144433B
* @see \PBurggraf\CRC\CRC16\X25
*/
class IBMSDLC extends AbstractCRC16
{
public function __construct()
$this->poly = 0x1021;
$this->init = 0xffff;
$this->reverseIn = true;
$this->reverseOut = true;
$this->xorOut = 0xffff;
$this->lookupTable = $this->generateTable($this->poly);
}