Skip to content

burdges/endian-hasher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This crate provides wrappers for Hasher that change the endianness used when hashing primitive numeric types.

documentation

Documentation

There is documentation with examples at https://docs.rs/endian-hasher/

Installation

This crate works with Cargo and is on crates.io. Add it to your Cargo.toml with:

[dependencies]
endianhasher = "^0.1"

Use the crate like:

extern crate endian_hasher;

use std::hash::{Hasher, SipHasher24};

use endianhasher::{HasherToLE, HasherToBE};

let mut h1 = HasherToLE(SipHasher24::new_with_keys(k0,k1));
-3i64.hash(&mut h1);
h1.finish()

About

Endianness wrapper for Hashers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages