Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于CRC32 #7

Open
caichunjian520 opened this issue Jul 23, 2019 · 1 comment
Open

关于CRC32 #7

caichunjian520 opened this issue Jul 23, 2019 · 1 comment

Comments

@caichunjian520
Copy link

我尝试把项目做成iOS的,但是发现CRC32这一步不太明白,无论怎么操作,最终都跟Python计算结果不同,从而导致无法进行下去,iOS中swift语言自带有zlib.crc32函数,这里面有三个参数,分别是uLong, 字节数字,无符号整型。但是看你的代码中,crc32函数里面只有两个参数。我在网上查阅了,关于crc32还需要定义一个table数组查找。

希望能关于这个指点一二。

@ihciah
Copy link
Owner

ihciah commented Sep 19, 2019

你这个应该去查下swift的crc32?不行的话看一下python zlib的实现吧。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants