hash::adler32+x86_64 +linux

Implements the Adler-32 checksum algorithm. It is a non-cryptographic checksum.

Index

Types

// Undocumented types:
type state = struct {
	hash::hash,
	a: u32,
	b: u32,
};

Constants

def SZ: size = 4;

Functions

fn adler32() state;

// Undocumented functions:
fn sum32(h: *hash::hash) u32;

Types

type state[link]

Show undocumented member
type state = struct {
	hash::hash,
	a: u32,
	b: u32,
};

Constants

def SZ[link]

def SZ: size = 4;

The size, in bytes, of an Adler-32 checksum.

Functions

fn adler32[link]

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[link]

Show undocumented member
fn sum32(h: *hash::hash) u32;