hash::adler32
Implements the Adler-32 checksum algorithm. It is a non-cryptographic checksum.
Index
Types
type state = struct {
hash::hash,
a: u32,
b: u32,
};
Constants
def SZ: size = 4;
Functions
fn adler32() state;
fn sum32(h: *hash::hash) u32;
Types
type state
Show undocumented member
type state = struct {
hash::hash,
a: u32,
b: u32,
};
Constants
def SZ
def SZ: size = 4;
The size, in bytes, of an Adler-32 checksum.
Functions
fn adler32
fn adler32() state;
Creates a hash::hash which computes the Adler-32 checksum algorithm. This hash does not allocate any state, so you do not need to call hash::close when you are done with it.
fn sum32
Show undocumented member
fn sum32(h: *hash::hash) u32;