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

Questions about the calculation results of CRC32.buf and CRC32.str #24

Open
adonis-lsh opened this issue Jul 12, 2024 · 0 comments
Open

Comments

@adonis-lsh
Copy link

/* Frequently faster in NodeJS */
crc32 = CRC32.buf(Buffer.from(bstr, "binary"), 0);
crc32 = CRC32.str(bstr, 0);

Whether the calculation result of CRC32.buf in the node and the calculation result of CRC32.str in the scheduler are always the same with the same parameters?I want to use one on the server and one on the browser, but I'm afraid that the two methods will calculate the same string inconsistently.

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

1 participant