Module: stdgo.hash.adler32
Overview
Index
-
function benchmarkAdler32KB(_b:stdgo._internal.testing.B):Void
-
function testGoldenMarshal(_t:stdgo._internal.testing.T_):Void
Constants
import stdgo.hash.adler32.Adler32
final size:haxe.UInt64 = stdgo._internal.hash.adler32.Adler32_size.size
Classes
import stdgo.hash.adler32.*
class Adler32
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.
Adler32 function benchmarkAdler32KB
function benchmarkAdler32KB(_b:stdgo._internal.testing.B):Void
Adler32 function checksum
function checksum(_data:Array<UInt>):UInt
Checksum returns the Adler-32 checksum of data.
Adler32 function new_
function new_():stdgo._internal.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.
Adler32 function testGolden
function testGolden(_t:stdgo._internal.testing.T_):Void
Adler32 function testGoldenMarshal
function testGoldenMarshal(_t:stdgo._internal.testing.T_):Void
Typedefs
import stdgo.hash.adler32.*
typedef T__struct_0
typedef T__struct_0 = stdgo._internal.hash.adler32.T__struct_0;
typedef T_digest
typedef T_digest = stdgo._internal.hash.adler32.T_digest;