1METALINK_CHUNK_CHECKSUM_T(3)  libmetalink Manual  METALINK_CHUNK_CHECKSUM_T(3)
2
3
4

NAME

6       metalink_chunk_checksum_t - The structure that holds piece hashes for a
7       resource.
8
9

SYNOPSIS

11       #include <metalink/metalink_types.h>
12
13

DESCRIPTION

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

STRUCTURE MEMBERS

21       char *type;
22       int length;
23       metalink_piece_hash_t **piece_hashes;
24
25
26   type
27       Null terminated string of a message digest algorithm name used to  cal‐
28       culate hash value for a resource.
29
30
31   length
32       Length of a piece in bytes.
33
34
35   piece_hashes
36       Null terminated array of pointer of metalink_piece_hash_t(3) structure.
37       They are ordered so that a pointer to metalink_piece_hash_t(3)  of  ith
38       piece can be accessed by piece_hashes[i].
39
40

SEE ALSO

42       metalink_parse_file(3), metalink_piece_hash_t(3)
43
44
45
46libmetalink 0.0.3                 10/28/2008      METALINK_CHUNK_CHECKSUM_T(3)
Impressum