metalink_chunk_checksum_t - Man Page

The structure that holds piece hashes for a resource.

Synopsis

#include <metalink/metalink_types.h>

Description

metalink_chunk_checksum_t is a structure that holds piece hashes for a resource. It contains length of piece and a message digest algorithm name and each hash value which is stored in metalink_piece_hash_t(3).

Structure Members

char *type;
int length;
metalink_piece_hash_t **piece_hashes;

type

Null terminated string of a message digest algorithm name used to calculate hash value for a resource.

length

Length of a piece in bytes.

piece_hashes

Null terminated array of pointer of metalink_piece_hash_t(3) structure. They are ordered so that a pointer to metalink_piece_hash_t(3) of ith piece can be accessed by piece_hashes[i].

See Also

metalink_parse_file(3), metalink_piece_hash_t(3)

Referenced By

metalink_file_t(3).

10/28/2008 libmetalink 0.0.3 libmetalink Manual