Skip to main content
Module

x/murmurhash/mod.ts>default

An incremental implementation of MurmurHash3 for JavaScript
Latest
class default
import { default } from "https://deno.land/x/murmurhash@v1.0.0/mod.ts";

JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)

Constructors

new
default(key?: string, seed?: number)

Create a MurmurHash3 object for incremental hashing.

Properties

private
h1: number
private
k1: number
private
len: number
private
rem: number

Methods

hash(key: string)

Incrementally add a string to this hash

reset(seed?: number)

Reset the hash object for reuse

result(): number

Get the result of this hash