【发布时间】:2011-04-29 18:20:06
【问题描述】:
0 是否可能是循环冗余校验 (CRC) 的校验和?
我正在使用 boost 来计算 CRC:
const unsigned int CrcPolynomial = 0x11021;
const unsigned short InitialValue = 0xffff;
boost::crc_optimal<16, CrcPolynomial, InitialValue, 0, true, true> Crc;
// process some bytes...
int x = Crc.checksum(); // <------ can this be 0?
【问题讨论】: