Package adler32
Overview ▸
Index ▸
Constants
The size of an Adler-32 checksum in bytes.
const Size = 4
func Checksum ¶
func Checksum(data []byte) uint32
Checksum returns the Adler-32 checksum of data.
func New ¶
func New() hash.Hash32
New returns a new hash.Hash32 computing the Adler-32 checksum. Its Sum method will lay the value out in big-endian byte order. The returned Hash32 also implements encoding.BinaryMarshaler and encoding.BinaryUnmarshaler to marshal and unmarshal the internal state of the hash.