computeStridedIntegerArrayHash
computeStridedIntegerArrayHash(array, offset, length, stride) ⇒ number
Useful for computing hashes of large arrays, can pick a relevant stride and skip large chunks of memory while still capturing good amount of unique information from evenly-spaced areas of the array
Kind: global function
Param | Type |
---|---|
array | Array.<number> | Uint32Array | Uint16Array | Uint8Array |
offset | number |
length | number |
stride | number |
computeStridedIntegerArrayHash~hash : number
Simple hashing scheme, multiplying existing hash by a prime and adding next value (h<<5) - h === h*31
Kind: inner property of computeStridedIntegerArrayHash