程序包 proguard.util
类 HashUtil
- java.lang.Object
-
- proguard.util.HashUtil
-
public class HashUtil extends java.lang.ObjectHashing functions.
-
-
字段概要
字段 修饰符和类型 字段 说明 static intFNV_HASH_INITstatic intFNV_HASH_PRIME
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static inthash(byte[] data, int init)Computes a hash of the given bytes, using the FNV-1a hashing function, but with a custom inital hash value.static inthash(java.lang.String string, int init)Convience method for computing the FNV-1a hash on the UTF-8 encoded byte representation of the given String, using the given initial hash value.static inthashFnv1a32(byte[] data)FNV-1a hashing function.static inthashFnv1a32_UTF8(java.lang.String string)Convience method for computing the FNV-1a hash on the UTF-8 encoded byte representation of the given String.
-
-
-
方法详细资料
-
hashFnv1a32_UTF8
public static int hashFnv1a32_UTF8(java.lang.String string)
Convience method for computing the FNV-1a hash on the UTF-8 encoded byte representation of the given String.
-
hash
public static int hash(java.lang.String string, int init)Convience method for computing the FNV-1a hash on the UTF-8 encoded byte representation of the given String, using the given initial hash value.
-
hashFnv1a32
public static int hashFnv1a32(byte[] data)
FNV-1a hashing function.https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function
-
hash
public static int hash(byte[] data, int init)Computes a hash of the given bytes, using the FNV-1a hashing function, but with a custom inital hash value.
-
-