Skip to main content
Module

x/live/deps.ts>Murmurhash3

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Very Popular
Go to Latest
class Murmurhash3
import { Murmurhash3 } from "https://deno.land/x/live@1.63.12/deps.ts";

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

Constructors

new
Murmurhash3(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