FastCRC Library API

SL_FCRC16C_Calculate

unsigned long SL_FCRCCALL SL_FCRC16C_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_FCRC16C_Calculate( string, strlen( string ) );

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

    return 0;
}

 

 

CRC16C API Overview   |   CRC16C API_Functions   |   Useful Links   |   HashCalc

 

See Also    SL_FCRC16C_CalculateStr, SL_FCRC16C_CalculateFile, SL_FCRC_ConvertToHex16


 

 

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