ref: df1f2fb3daa1acd25c88510f259d5535fb482126
dir: /internal/adler32/adler32_fallback.go/
//go:build !amd64 || purego
package adler32
import (
"hash"
"hash/adler32"
)
// The size of an Adler-32 checksum in bytes.
const Size = 4
// New returns a new hash.Hash32 computing the Adler-32 checksum.
func New() hash.Hash32 {
return adler32.New()
}
// Checksum returns the Adler-32 checksum of data.
func Checksum(data []byte) uint32 { return adler32.Checksum(data) }