From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/go/hash%2Fadler32%2Findex.html | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 devdocs/go/hash%2Fadler32%2Findex.html (limited to 'devdocs/go/hash%2Fadler32%2Findex.html') diff --git a/devdocs/go/hash%2Fadler32%2Findex.html b/devdocs/go/hash%2Fadler32%2Findex.html new file mode 100644 index 00000000..58786cdd --- /dev/null +++ b/devdocs/go/hash%2Fadler32%2Findex.html @@ -0,0 +1,23 @@ +

Package adler32

Overview

Package adler32 implements the Adler-32 checksum.

+

It is defined in RFC 1950:

+
Adler-32 is composed of two sums accumulated per byte: s1 is
+the sum of all bytes, s2 is the sum of all s1 values. Both sums
+are done modulo 65521. s1 is initialized to 1, s2 to zero.  The
+Adler-32 checksum is stored as s2*65536 + s1 in most-
+significant-byte first (network) order.
+

Index

Package files

adler32.go

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.

+

+ © Google, Inc.
Licensed under the Creative Commons Attribution License 3.0.
+ http://golang.org/pkg/hash/adler32/ +

+
-- cgit v1.2.3