goog.crypt.hash32
Namespace.CONSTANT32
{number
}Arbitrary constant used during hashing. See CONSTANT32 in http://go/base.hash.java
.SEED32
{number
}Default seed used during hashing, digits of pie. See SEED32 in http://go/base.hash.java
.encodeByteArray(bytes, opt_offset, opt_length, opt_seed)
Hashes a "byte" array to a 32-bit value using the supplied seed.
bytes
{Array
.<number
>}
opt_offset
{number
=}
opt_length
{number
=}
opt_seed
{number
=}
number
}
.encodeInteger(value)
Hashes an integer to a 32-bit value.
value
{number
}
number
}
.encodeString(str)
Hashes a string to a 32-bit value.
str
{string
}
number
}
.encodeStringUtf8(str)
Hashes a string to a 32-bit value, converting the string to UTF-8 before doing the encoding.
str
{string
}
number
}