blob: 6f3b0cb10264c553f9bbf0bcab8ca0fc0158d8ca [file] [log] [blame]
khenaidood948f772021-08-11 17:49:24 -04001package xxhash
2
3// Sum64String computes the 64-bit xxHash digest of s.
4func Sum64String(s string) uint64 {
5 return Sum64([]byte(s))
6}
7
8// WriteString adds more data to d. It always returns len(s), nil.
9func (d *Digest) WriteString(s string) (n int, err error) {
10 return d.Write([]byte(s))
11}