Akash Reddy Kankanala | c001463 | 2025-05-21 17:12:20 +0530 | [diff] [blame^] | 1 | //go:build appengine |
Joey Armstrong | 903c69d | 2024-02-01 19:46:39 -0500 | [diff] [blame] | 2 | // +build appengine |
| 3 | |
| 4 | // This file contains the safe implementations of otherwise unsafe-using code. |
| 5 | |
| 6 | package xxhash |
| 7 | |
| 8 | // Sum64String computes the 64-bit xxHash digest of s. |
| 9 | func Sum64String(s string) uint64 { |
| 10 | return Sum64([]byte(s)) |
| 11 | } |
| 12 | |
| 13 | // WriteString adds more data to d. It always returns len(s), nil. |
| 14 | func (d *Digest) WriteString(s string) (n int, err error) { |
| 15 | return d.Write([]byte(s)) |
| 16 | } |