@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
13 lines • 723 B
TypeScript
/**
* 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
* @template T
* @param {T[]|Uint32Array|Uint16Array|Uint8Array} array
* @param {number} offset
* @param {number} length
* @param {number} stride
* @param {function(T):number} elementHash
* @param {*} [elementHashContext]
* @return {number}
*/
export function computeStridedArrayHash<T>(array: Uint8Array | Uint16Array | Uint32Array | T[], offset: number, length: number, stride: number, elementHash: (arg0: T) => number, elementHashContext?: any): number;
//# sourceMappingURL=computeStridedArrayHash.d.ts.map