| String :: Cityhash. wrapper cityhash para perl |
Baixe Agora |
String :: Cityhash. Classificação e resumo
- Licença:
- Perl Artistic License
- Nome do editor:
- Alessandro Ghedini
- Site do editor:
- http://search.cpan.org/~alexbio/
String :: Cityhash. Tag
String :: Cityhash. Descrição
String :: Cityhash é uma família de funções de hash não criptográficas para seqüências de caracteres. Ele fornece funções de hash projetadas para hashing fast de strings. As funções misturam os bits de entrada completamente, mas não são adequados para criptografia. CityHash destina-se a ser rápido, sob a restrição que havia muito bem.synopsis use string :: Cityhash QW (Cityhash64 Cityhash128); Meu $ str = "Alguma corda a ser hashed"; meu $ semente0 = 0x9e16a3b2f90404f; Meu $ SEED1 = 0xc3a5c85c97cb3130; meu $ hash1 = cityhash64 ($ str); # como inteiro meu $ hash2 = cityhash64 ($ str, $ semente0); # como inteiro meu $ hash3 = cityhash64 ($ str, $ semente0, $ semente1); # como inteiro meu $ hash4 = cityhash64_bits ($ str); # 8-byte string segurando int my $ hash5 = cityhash64_bits ($ str, $ semente0); meu $ hash6 = cityhash64_bits ($ str, $ SEAD0, $ SEED1); meu ($ l, $ h) = cityhash128 ($ str); # Baixa e alta peças de 64 bits, # como inteiros meu $ hash7 = cityhash128_bits ($ str); # 16-byte string segurando baixo # então alta página inteira de 64 bitsproduto
String :: Cityhash. Software Relacionado