Some BINKP optimisation, implemented crypt, implemented receiving compressed transfers
This commit is contained in:
@@ -9,6 +9,11 @@ trait CRC
|
||||
return (self::crc16usd_tab[(($crc >> 8) ^ $b) & 0xff] ^ (($crc & 0x00ff) << 8)) & 0xffff;
|
||||
}
|
||||
|
||||
private function CRC32_CR(int $c,int $b)
|
||||
{
|
||||
return (self::crc32_tab[((int)($c) ^ ($b)) & 0xff] ^ (($c) >> 8));
|
||||
}
|
||||
|
||||
private function CRC32_FINISH(int $crc)
|
||||
{
|
||||
return ~$crc & 0xffffffff;
|
||||
|
Reference in New Issue
Block a user