You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

17 lines
413 B

  1. //go:build appengine
  2. // +build appengine
  3. // This file contains the safe implementations of otherwise unsafe-using code.
  4. package xxhash
  5. // Sum64String computes the 64-bit xxHash digest of s.
  6. func Sum64String(s string) uint64 {
  7. return Sum64([]byte(s))
  8. }
  9. // WriteString adds more data to d. It always returns len(s), nil.
  10. func (d *Digest) WriteString(s string) (n int, err error) {
  11. return d.Write([]byte(s))
  12. }