gpt4 book ai didi

c# - SourceSafe CRC 计算

转载 作者:太空宇宙 更新时间:2023-11-03 22:27:33 27 4
gpt4 key购买 nike

有谁知道 Microsoft SourceSafe 中使用什么 CRC 校验和计算?我想在本地计算校验和并将其与 SourceSafe 校验和进行比较。

我使用的是在互联网上找到的 CRC 算法,但该算法的种子或多项式似乎与 SourceSafe 不同。

最佳答案

查看这篇文章:

http://www.tesoga.com/vssnotes.html

您可能正在寻找的广告是:

And the 16-bit CRC is mostly the standard algorithm. The one difference is that in my experience, CRCs typically start off by initializing the state to -1 (0xFFFFFFFF), accumulating, then returns the logical-NOT of the result. However, the VSS CRC logic initializes state to 0, and does not apply a logical-NOT at the end. Make certain you're using this technique when verifying any CRCs in the file. (Refer to VssCrc32() in CRC32.c for a working implementation.)

他提到的代码包含在这个 zip 文件中:

http://www.teachsolaisgames.com/downloads/vsscode.zip

关于c# - SourceSafe CRC 计算,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/760124/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com