Namespace: go.std.hash.adler32
v1.0Contents
Summary
Provides a low-level interface to the hash/adler32 package.
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
Legend
-
Constant
Variable
Function
Macro
Special form
Type
GoVar
Receiver/Method
Constants
Constants are variables with :const true in their metadata. Joker currently does not recognize them as special; as such, it allows redefining them or their values.-
Size
Int v1.0The size of an Adler-32 checksum in bytes.
Variables
-
(None.)
Functions, Macros, and Special Forms
-
Checksum
Function v1.0(Checksum data)
Checksum returns the Adler-32 checksum of data.
Go input arguments: (data []byte)
Go returns: uint32
Joker input arguments: [^arrayOfByte data]
Joker returns: ^Number -
New
Function v1.0(New)
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.
Go returns: hash.Hash32
Joker input arguments: []
Joker returns: ^go.std.hash/Hash32
Types
-
(None.)