All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.darkrockstudios.symspellkt.api.HashFunction.kt Maven / Gradle / Ivy

package com.darkrockstudios.symspellkt.api

interface HashFunction {
	/**
	 * Return the hash of the bytes as long.
	 *
	 * @param bytes the bytes to be hashed
	 * @return the generated hash value
	 */
	fun hash(bytes: ByteArray?): Long?


	/**
	 * Return the hash of the bytes as long.
	 *
	 * @param data the String to be hashed
	 * @return the generated  hash value
	 */
	fun hash(data: String?): Long?
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy