Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
1. Dez 2013
RawByteString is good, because it's easy. TBytes will be better as you told, but I don't know to much how to use it (perform convertion) with any data, strings, streams, etc. How to convert some string to bytes? Or stream?
Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
1. Dez 2013
If I'll use bytes as input, how to use it for strings and other data?
Forum: Object-Pascal / Delphi-Language
Delphi
by WojTec,
1. Dez 2013
Original function in C++:
unsigned int MurmurHash2 ( const void * key, int len, unsigned int seed )
{
// 'm' and 'r' are mixing constants generated offline.
// They're not really 'magic', they just happen to work well.
const unsigned int m = 0x5bd1e995;
const int r = 24;