Home

# Library goog.crypt.hash32

Function Summary
| `encodeByteArray(?Array.<number> bytes, number= opt_offset, number= opt_length, number= opt_seed) ⇒ number` Hashes a "byte" array to a 32-bit value using the supplied seed.
| `encodeInteger(number value) ⇒ number` Hashes an integer to a 32-bit value.
| `encodeString(string str) ⇒ number` Hashes a string to a 32-bit value.
| `encodeStringUtf8(string str) ⇒ number` Hashes a string to a 32-bit value, converting the string to UTF-8 before doing the encoding.
| `mix32_(?Object mix) ⇒ number` Performs an inplace mix of an object with the integer properties (a, b, c) and returns the final value of c.
| `toSigned_(number n) ⇒ number` Converts an unsigned "byte" to signed, that is, convert a value in the range (0, 2^8-1) to (-2^7, 2^7-1) in order to be compatible with Java's byte type.
| `wordAt_(?Array.<number> bytes, number offset) ⇒ number` Returns the word at a given offset. Treating an array of bytes a word at a time is far more efficient than byte-by-byte.