Computes the Adler32 checksum for the source data buffer.
IppStatus ippsAdler32_8u (const Ipp8u* pSrc, int srcLen, Ipp32u* pAdler32);
pSrc |
Pointer to the source data buffer. |
srcLen |
Number of elements in the source data buffer. |
pAdler32 |
Pointer to the checksum value. |
The function ippsAdler32 is declared in theippdc.h file. This function computes the checksum for srcLen elements of the source data buffer pSrc and stores it in the pAdler32. The checksum is computed using the Adler32 algorithm that is a modified version of the Fletcher algorithm [Flet82], [ITU224 ], [RFC1950].
You can use this function to compute the accumulated value of the checksum for multiple buffers in the data stream by specifying as an input parameter the checksum value obtained in the preceding function call.
ippStsNoErr |
Indicates no error. |
ippStsNullPtrErr |
Indicates an error if the pSrc pointer is NULL. |
ippStsSizeErr |
Indicates an error if srcLen is less than or equal to 0. |
Copyright © 2000 - 2010, Intel Corporation. All rights reserved.