Documentation ¶
Overview ¶
Package xxHash32 implements the very fast xxHash hashing algorithm (32 bits version). (https://github.com/Cyan4973/xxHash/)
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Checksum ¶
Checksum returns the 32bits Hash value.
Example ¶
package main import ( "bytes" "fmt" "blockwatch.cc/knoxdb/hash/xxHash32" ) func main() { buf := bytes.NewBufferString("this is a test") fmt.Printf("%x\n", xxHash32.Checksum(buf.Bytes(), 0xCAFE)) }
Output: bb4f02bc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.