blob: 05f5e7dfe7b72bbb0edb82b03151e58cddcc3f1b [file] [log] [blame]
Akash Reddy Kankanalacf045372025-06-10 14:11:24 +05301//go:build appengine
khenaidood948f772021-08-11 17:49:24 -04002// +build appengine
3
4// This file contains the safe implementations of otherwise unsafe-using code.
5
6package xxhash
7
Abhay Kumara2ae5992025-11-10 14:02:24 +00008// Sum64String computes the 64-bit xxHash digest of s with a zero seed.
khenaidood948f772021-08-11 17:49:24 -04009func Sum64String(s string) uint64 {
10 return Sum64([]byte(s))
11}
12
13// WriteString adds more data to d. It always returns len(s), nil.
14func (d *Digest) WriteString(s string) (n int, err error) {
15 return d.Write([]byte(s))
16}