blob: e86f1b5fd8e4ca2f67ac3179010898e55e7e011c [file] [log] [blame]
Akash Reddy Kankanalac28f0e22025-06-16 11:00:55 +05301//go:build appengine
Joey Armstronge8c091f2023-01-17 16:56:26 -05002// +build appengine
3
4// This file contains the safe implementations of otherwise unsafe-using code.
5
6package xxhash
7
8// Sum64String computes the 64-bit xxHash digest of s.
9func 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}