METALINK_CHUNK_CHECKSUM_T(3)

πŸ“¦ version 0.1.3, in epel 9, opensuse-leap 16.0

πŸ’– NAME

okay bestie, metalink_chunk_checksum_t is literally the structure that holds piece hashes for a resource ✨ and this is the METALINK_CHUNK_CHECKSUM_T(3) page from the libmetalink manual. It’s giving β€œtiny but important,” fr fr.

πŸ¦‹ SYNOPSIS

include this header, bestie:

#include <metalink/metalink_types.h>

🌸 DESCRIPTION

metalink_chunk_checksum_t is a structure that holds piece hashes for a resource. It contains the length of a piece, a message digest algorithm name, and each hash value β€” and those hash values are stored in metalink_piece_hash_t(3) πŸ’….

πŸŽ€ STRUCTURE MEMBERS

here’s the whole vibe:

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

type

a null-terminated string of a message digest algorithm name used to calculate the hash value for a resource πŸ”₯.

length

the length of a piece in bytes πŸ“.

piece_hashes

a null-terminated array of pointers to metalink_piece_hash_t(3) structures 🫢. They are ordered so that a pointer to the metalink_piece_hash_t(3) of the ith piece can be accessed by piece_hashes[i] β€” iykyk πŸ‘‘.

🌈 SEE ALSO


libmetalink 0.0.3 Β· 10/28/2008 β€” that’s the cute little source/version + date sign-off, bestie πŸŽ€βœ¨