{"id":7533,"date":"2023-07-27T11:27:20","date_gmt":"2023-07-27T03:27:20","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=7533"},"modified":"2023-07-27T11:27:25","modified_gmt":"2023-07-27T03:27:25","slug":"cssmys","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/7533.html","title":{"rendered":"crc\u662f\u4ec0\u4e48\u610f\u601d\uff1f"},"content":{"rendered":"\n

\u3000\u3000\u5728\u73b0\u4ee3\u6570\u5b57\u901a\u4fe1\u4e2d\uff0c\u6570\u636e\u7684\u5b8c\u6574\u6027\u662f\u81f3\u5173\u91cd\u8981\u7684\u3002\u5982\u679c\u6570\u636e\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u88ab\u7be1\u6539\u6216\u635f\u574f\uff0c\u90a3\u4e48\u63a5\u6536\u65b9\u5c06\u65e0\u6cd5\u6b63\u786e\u5730\u89e3\u7801\u548c\u4f7f\u7528\u8fd9\u4e9b\u6570\u636e\u3002\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u5de5\u7a0b\u5e08\u4eec\u53d1\u660e\u4e86\u5faa\u73af\u5197\u4f59\u6821\u9a8c(CRC)\u7b97\u6cd5\u3002\u672c\u6587\u5c06\u6df1\u5165\u4ecb\u7ecdCRC\u7684\u539f\u7406\u3001\u5e94\u7528\u4ee5\u53ca\u4f18\u7f3a\u70b9\u3002<\/p>\n\n\n\n

\u3000\u3000\u4e00\u3001CRC\u7684\u539f\u7406<\/h2>\n\n\n\n

\u3000\u3000CRC\u662f\u4e00\u79cd\u901a\u8fc7\u5bf9\u6570\u636e\u5757\u6267\u884c\u7b97\u6cd5\u6765\u68c0\u67e5\u6570\u636e\u5b8c\u6574\u6027\u7684\u6280\u672f\u3002\u5b83\u57fa\u4e8e\u591a\u9879\u5f0f\u9664\u6cd5\u7684\u539f\u7406\uff0c\u5c06\u6570\u636e\u5757\u770b\u4f5c\u4e00\u4e2a\u591a\u9879\u5f0f\uff0c\u7136\u540e\u5bf9\u5176\u8fdb\u884c\u9664\u6cd5\u8fd0\u7b97\u3002\u5177\u4f53\u6765\u8bf4\uff0cCRC\u5c06\u6570\u636e\u5757\u770b\u4f5c\u4e00\u4e2a\u4e8c\u8fdb\u5236\u6570\uff0c\u518d\u5c06\u8fd9\u4e2a\u6570\u9664\u4ee5\u4e00\u4e2a\u9884\u8bbe\u7684\u9664\u6570\uff0c\u5f97\u5230\u7684\u4f59\u6570\u5c31\u662fCRC\u503c\u3002<\/p>\n\n\n\n

\u3000\u3000\u8fd9\u4e2a\u9664\u6570\u901a\u5e38\u88ab\u79f0\u4e3a\u751f\u6210\u591a\u9879\u5f0f\uff0c\u5b83\u7684\u957f\u5ea6\u51b3\u5b9a\u4e86CRC\u6821\u9a8c\u7684\u5f3a\u5ea6\u3002\u4f8b\u5982\uff0cCRC-16\u4f7f\u7528\u4e00\u4e2a16\u4f4d\u7684\u751f\u6210\u591a\u9879\u5f0f\uff0c\u800cCRC-32\u5219\u4f7f\u7528\u4e00\u4e2a32\u4f4d\u7684\u751f\u6210\u591a\u9879\u5f0f\u3002\u751f\u6210\u591a\u9879\u5f0f\u7684\u9009\u62e9\u5bf9CRC\u7684\u6027\u80fd\u548c\u5f3a\u5ea6\u6709\u5f88\u5927\u5f71\u54cd\uff0c\u56e0\u6b64\u5fc5\u987b\u8fdb\u884c\u4ed4\u7ec6\u7684\u5206\u6790\u548c\u9009\u62e9\u3002<\/p>\n\n\n\n

\u3000\u3000CRC\u7b97\u6cd5\u7684\u6838\u5fc3\u662f\u5f02\u6216\u8fd0\u7b97\u548c\u79fb\u4f4d\u8fd0\u7b97\u3002\u5f02\u6216\u8fd0\u7b97\u53ef\u4ee5\u5c06\u4e24\u4e2a\u4e8c\u8fdb\u5236\u6570\u8fdb\u884c\u9010\u4f4d\u6bd4\u8f83\uff0c\u5e76\u5728\u5b83\u4eec\u4e0d\u540c\u65f6\u5c06\u7ed3\u679c\u8bbe\u7f6e\u4e3a1.\u76f8\u540c\u5219\u4e3a0.\u79fb\u4f4d\u8fd0\u7b97\u53ef\u4ee5\u5c06\u4e8c\u8fdb\u5236\u6570\u5411\u5de6\u6216\u5411\u53f3\u79fb\u52a8\u4e00\u5b9a\u7684\u4f4d\u6570\u3002\u8fd9\u4e9b\u8fd0\u7b97\u53ef\u4ee5\u5728\u786c\u4ef6\u548c\u8f6f\u4ef6\u4e2d\u9ad8\u6548\u5730\u5b9e\u73b0\uff0c\u56e0\u6b64CRC\u7b97\u6cd5\u5df2\u6210\u4e3a\u73b0\u4ee3\u901a\u4fe1\u7cfb\u7edf\u4e2d\u5e7f\u6cdb\u4f7f\u7528\u7684\u6280\u672f\u4e4b\u4e00\u3002<\/p>\n\n\n\n

\u3000\u3000\u4e8c\u3001CRC\u7684\u5e94\u7528<\/h2>\n\n\n\n

\u3000\u3000CRC\u7b97\u6cd5\u5728\u8bb8\u591a\u9886\u57df\u4e2d\u90fd\u6709\u5e7f\u6cdb\u7684\u5e94\u7528\uff0c\u5305\u62ec\u6570\u636e\u901a\u4fe1\u3001\u5b58\u50a8\u3001\u8ba1\u7b97\u673a\u7f51\u7edc\u7b49\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684\u5e94\u7528\u573a\u666f\uff1a<\/p>\n\n\n\n