ref: ab174c473618dd3743881cf44e02c2db4d1ecd5f
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) }