differentrain / YYProject.XXHash

A pure C# library provides the implementations of xxHash algorithm.
MIT License
22 stars 5 forks source link

Wrong size computation? #2

Open theGiallo opened 4 years ago

theGiallo commented 4 years ago

Is it me or the HashCore functions should have var size = cbSize?

https://github.com/differentrain/YYProject.XXHash/blob/master/XXHash/YYProject.XXHash/XXHash.cs#L451 https://github.com/differentrain/YYProject.XXHash/blob/master/XXHash/YYProject.XXHash/XXHash.cs#L183

theGiallo commented 4 years ago

Also var limit = ibStart + size - _RemainingLength;