Size in bytes of the serialized hasher.
Digest byte order.
True if asynchronous update is in progress.
When this property is true, trying to update, calculate digest, serialize or copy state will result in an error thrown from the related method.
The total (modulo 2^32) bytes of data provided so far.
Copies the internal state onto the target utility.
This method does not alter target endianness.
a different instance of a MurmurHash utility of the same type.
target.
Generates the murmur hash of all of the data provided so far.
The order of bytes written to a Buffer or encoded string depends on endianness property.
a Buffer object to write hash bytes to; the same object will be returned.
start writing into the output at offset byte; negative offset starts from the end of the output buffer.
a number of bytes to write from calculated hash; negative length starts from the end of the hash; if absolute value of length is larger than the size of a calculated hash, bytes are written only up to the hash size.
murmur hash.
Generates the murmur hash of all of the data provided so far.
If outputType is not provided a new Buffer instance is returned.
The order of bytes written to a Buffer or encoded string depends on endianness property.
indicates the form and encoding of the returned hash.
murmur hash.
Serializes the internal state of the murmur hash utility instance into the provided Buffer.
When output has not enough space for the serialized data at the given offset it throws an Error. You may consult the required byte length reading constant: SERIAL_BYTE_LENGTH
a Buffer to write serialized state to.
offset at output.
Serializes the internal state of the murmur hash utility instance.
The serial is generated as a base64 encoded string.
Serializes the internal state of the murmur hash utility instance
The returned type depends on the implementation.
Updates a internal state with the given data asynchronously.
If data is a Buffer then encoding is being ignored.
The hash will be updated asynchronously using libuv worker queue.
a chunk of data to calculate hash from.
of the data provided as a string.
will be called when asynchronous operation completes.
Updates a internal state with the given data asynchronously.
If the data is a string, an encoding of "utf8" is assumed.
The hash will be updated asynchronously using libuv worker queue.
a chunk of data to calculate hash from.
will be called when asynchronous operation completes.
Updates a internal state with the given data.
If the data is a string and encoding is not explicitly provided, an encoding of "utf8" is being assumed.
a chunk of data to calculate hash from.
of the data provided as a string.
Generated using TypeDoc
A common interface to all of the murmur hash incremental utilities.