nickbabcock/Farmhash.Sharp

Make the Hash32 and Hash64 overloads which take a byte* public

NickStrupat opened this issue · 3 comments

Hi Nick,

I'm wondering what you think of exposing the unsafe overloads for Hash32 and Hash64 methods. I'd rather not create a bunch of byte[] when I'm calling it a lot in my already unsafe code :)

private static unsafe uint Hash32(byte* s, uint len)

private static unsafe ulong Hash64(byte* s, uint len)

Thanks,
Nick

Makes sense. Feel free to make PR or I can do it. I'll release an update today.

I pushed 0.4 to NuGet. Give it a whirl!