CRC32 implementation on .NET Micro

前端 未结 3 737
误落风尘
误落风尘 2021-01-26 02:38

I was looking for a CRC32 implementation I could use on the .Net Micro framework. I found this implementation, but the micro framework has not yet implemented the HashAlgorithm.

3条回答
  •  忘掉有多难
    2021-01-26 03:04

    You can use the code you are referring to. HashAlgorithm is just used as an Interface and you can drop it without harming the functionality of the CRC implementation itself.

    Change "protected override void HashCore(byte[] buffer, int start, int length)" to "public void CalcCrc32(byte[] buffer, int start, int length)".

    public uint CrcValue should return crcValue unaltered.

    Drop all other methods and properties.

提交回复
热议问题