comparison adler32.h @ 959:082e51609a90 libavutil

adler32: add API documentation
author mru
date Wed, 30 Jun 2010 20:09:40 +0000
parents 4d9ad0ed07d0
children
comparison
equal deleted inserted replaced
958:f789d66969a4 959:082e51609a90
22 #define AVUTIL_ADLER32_H 22 #define AVUTIL_ADLER32_H
23 23
24 #include <stdint.h> 24 #include <stdint.h>
25 #include "attributes.h" 25 #include "attributes.h"
26 26
27 /**
28 * Calculate the Adler32 checksum of a buffer.
29 *
30 * Passing the return value to a subsequent av_adler32_update() call
31 * allows the checksum of multiple buffers to be calculated as though
32 * they were concatenated.
33 *
34 * @param adler initial checksum value
35 * @param buf pointer to input buffer
36 * @param len size of input buffer
37 * @return updated checksum
38 */
27 unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf, 39 unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf,
28 unsigned int len) av_pure; 40 unsigned int len) av_pure;
29 41
30 #endif /* AVUTIL_ADLER32_H */ 42 #endif /* AVUTIL_ADLER32_H */