xxhash_safe.go 291 B

1234567891011
  1. package xxhash
  2. // Sum64String computes the 64-bit xxHash digest of s.
  3. func Sum64String(s string) uint64 {
  4. return Sum64([]byte(s))
  5. }
  6. // WriteString adds more data to d. It always returns len(s), nil.
  7. func (d *Digest) WriteString(s string) (n int, err error) {
  8. return d.Write([]byte(s))
  9. }