mirror of
https://github.com/vxunderground/VX-API
synced 2024-06-27 01:08:31 +00:00
22 lines
306 B
C++
22 lines
306 B
C++
DWORD HashStringSdbmA(PCHAR String)
|
|
{
|
|
ULONG Hash = 0;
|
|
INT c;
|
|
|
|
while (c = *String++)
|
|
Hash = c + (Hash << 6) + (Hash << 16) - Hash;
|
|
|
|
return Hash;
|
|
}
|
|
|
|
DWORD HashStringSdbmW(PWCHAR String)
|
|
{
|
|
ULONG Hash = 0;
|
|
INT c;
|
|
|
|
while (c = *String++)
|
|
Hash = c + (Hash << 6) + (Hash << 16) - Hash;
|
|
|
|
return Hash;
|
|
}
|