Arquivos
hhvm/hphp/system/php/hash/hphp_murmurhash.php
T
Sara Golemon 512ecad7cb Convert ext_hash function/methods to use new HNI bindings
Delete hash.idl.json.
Implement extension in systemlib (plus native funcs).
This makes ext_hash.ext_hhvm.cpp a noop.

Differential Revision: D940558
2013-08-30 16:04:01 -07:00

14 linhas
332 B
PHP

<?php
/**
* hphp_murmurhash
*
* @param string $key - The key to hash
* @param int $len - Number of bytes to use from the key
* @param int $seed - The seed to use for hashing
*
* @return - The Int64 hash of the first len input characters
*/
<<__Native>>
function hphp_murmurhash(string $key, int $len, int $seed): int;