Documentation ¶
Index ¶
- Constants
- func AddBytes32(h uint32, b []byte) uint32
- func AddBytes64(h uint64, b []byte) uint64
- func AddString32(h uint32, s string) uint32
- func AddString64(h uint64, s string) uint64
- func AddUint32(h, u uint32) uint32
- func AddUint64(h uint64, u uint64) uint64
- func HashBytes32(b []byte) uint32
- func HashBytes64(b []byte) uint64
- func HashString32(s string) uint32
- func HashString64(s string) uint64
- func HashUint32(u uint32) uint32
- func HashUint64(u uint64) uint64
Constants ¶
View Source
const (
// Init32 is what 32 bits hash values should be initialized with.
Init32 = offset32
)
View Source
const (
// Init64 is what 64 bits hash values should be initialized with.
Init64 = offset64
)
Variables ¶
This section is empty.
Functions ¶
func AddBytes32 ¶ added in v1.0.2
AddBytes32 adds the hash of b to the precomputed hash value h.
func AddBytes64 ¶ added in v1.0.2
AddBytes64 adds the hash of b to the precomputed hash value h.
func AddString32 ¶
AddString32 adds the hash of s to the precomputed hash value h.
func AddString64 ¶
AddString64 adds the hash of s to the precomputed hash value h.
func HashBytes32 ¶ added in v1.0.2
HashBytes32 returns the hash of u.
func HashBytes64 ¶ added in v1.0.2
HashBytes64 returns the hash of u.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.