def init_crc16(self):
"""The algorithm uses tables with precalculated values"""
for i in range(0, 256):
crc = c_ushort(i).value
for j in range(0, 8):
if crc & 0x0001:
crc = c_ushort(crc >> 1).value ^ self.crc16_constant
else:
crc = c_ushort(crc >> 1).value
self.crc16_tab.append(crc)
build_twlbg_code_from_dev_launcher_srl_o3ds.py 文件源码
python
阅读 24
收藏 0
点赞 0
评论 0
评论列表
文章目录