X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fcrcsync%2Fcrcsync.h;h=f4d6f686f88d9f6ba6173c424cddccfdce54c127;hp=4b25562bbb793d6f1bd9b193d785a963eca5aaf6;hb=c1daa044b22fce3ca80d3430e3e1ad9360f8a4f1;hpb=c934a7a21d9ea8aa421d62a65a93f46c95adb535 diff --git a/ccan/crcsync/crcsync.h b/ccan/crcsync/crcsync.h index 4b25562b..f4d6f686 100644 --- a/ccan/crcsync/crcsync.h +++ b/ccan/crcsync/crcsync.h @@ -19,14 +19,14 @@ void crc_of_blocks(const void *data, size_t len, unsigned int blocksize, /** * crc_context_new - allocate and initialize state for crc_find_block - * @blocksize: the sie of each block + * @blocksize: the size of each block * @crcbits: the bits valid in the CRCs (<= 32) - * @crc: array of block crcs + * @crc: array of block crcs (including final block, if any) * @num_crcs: number of block crcs - * @final_size: the final block size (<= blocksize). + * @tail_size: the size of final partial block, if any (< blocksize). * * Returns an allocated pointer to the structure for crc_find_block, - * or NULL. Makes a copy of @crc and @num_crcs. + * or NULL. Makes a copy of @crc. */ struct crc_context *crc_context_new(size_t blocksize, unsigned crcbits, const uint32_t crc[], unsigned num_crcs,