Contents 

SlavaSoft FastCRC Library Online Help

Prev Page Next Page
FastCRC Library API

SL_FCRC32_Calculate

unsigned long SL_FCRCCALL SL_FCRC32_Calculate( const void* pSrc, unsigned int nSrcLength );

Return value

The checksum.

Parameters

 pSrc

    [in] Pointer to the continuous memory block for which to calculate the checksum.

 nSrcLength

    [in] Length in bytes of the memory block. 

Remarks

Calculates the checksum for the memory block pointed by pSrc.

Example

#include <string.h>
#include <FastCRC.h>

int main()
{
    char string[] = "Test String";
    unsigned long checksum;

    /*****Calculate the checksum********************************/

    checksum = SL_FCRC32_Calculate( string, strlen( string ) );

    /*****Use the checksum**************************************/
    /*...*/

    return 0;
}

 

 

CRC32 API Overview   |   CRC32 API_Functions   |   Useful Links   |   HashCalc

 

See Also    SL_FCRC32_CalculateStr, SL_FCRC32_CalculateFile, SL_FCRC_ConvertToHex32


 

 

Send Feedback to SlavaSoft Inc. Tell a friend about FastCRC Library