hash

Generated by tinox doc

tinox.core.hash, bundled with the compiler and also available as a standalone tinox-central package.

Hash code

import tinox.core.hash
class Main
{
    fnc main() -> Int32
    {
        const h1: Int64 = Hash::hashString("alice@example.com")
        const h2: Int64 = Hash::hashInt(42)
        const combined: Int64 = Hash::combine(h1, h2)
        println("combined hash: " + combined.toString())
        return 0
    }
}

class Hash

Methods

fn hashString(s: String) → Int64
fn hashInt(n: Int64) → Int64
fn combine(h1: Int64, h2: Int64) → Int64