Documentation ¶
Index ¶
- Constants
- Variables
- func Checksum32(in []byte) uint32
- func Checksum32S(in []byte, seed uint32) uint32
- func Checksum64(in []byte) uint64
- func Checksum64S(in []byte, seed uint64) uint64
- func New32() hash.Hash32
- func New64() hash.Hash64
- func NewS32(seed uint32) hash.Hash32
- func NewS64(seed uint64) hash.Hash64
Constants ¶
View Source
const Backend = "CGO"
Backend returns the current version of xxhash being used.
Variables ¶
View Source
var ( // ErrAlreadyComputed is returned if you try to call Write after calling Sum ErrAlreadyComputed = errors.New("cannot update an already computed hash") // ErrMemoryLimit is returned if you try to call Write with more than 1 Gigabytes of data ErrMemoryLimit = errors.New("cannot use more than 1 Gigabytes of data at once") )
Functions ¶
func Checksum32 ¶
Checksum32 returns the checksum of the input data with the seed set to 0
func Checksum32S ¶
Checksum32S returns the checksum of the input bytes with the specific seed.
func Checksum64 ¶
Checksum64 returns the checksum of the input data with the seed set to 0
func Checksum64S ¶
Checksum64S returns the checksum of the input bytes with the specific seed.
func New32 ¶
New32 creates a new hash.Hash32 computing the 32bit xxHash checksum starting with the seed set to 0x0.
func New64 ¶
New64 creates a new hash.Hash64 computing the 64bit xxHash checksum starting with the seed set to 0x0.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.