in src/Apache/Ignite/Internal/Binary/BinaryUtils.php [360:371]
public static function hashCode(?string $str): int
{
$hash = 0;
$length = strlen($str);
if ($str && $length > 0) {
for ($i = 0; $i < $length; $i++) {
$hash = (($hash << 5) - $hash) + ord($str[$i]);
$hash &= 0xFFFFFFFF; // Convert to 32bit integer
}
}
return BinaryUtils::intVal32($hash);
}