COMMITTED: Simpler implementation of CRC16
I have tried to rewrite the CRC16 code (which looks like it's been generated from some assembly from the official client) used for checksuming packets. I ended up with code that looked very much like the Ethernet CRC32. If you look at the lookup tables in CRC16.cpp and CRC32.cpp you'll see they have the same values.
Code:
// This is computed as the lowest 16 bits of an Ethernet CRC32 checksum |
All times are GMT -4. The time now is 12:40 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.