Contents 

SlavaSoft FastCRC Library Online Help

Prev Page Next Page
FastCRC Library C++ Interface

CFastCRC16::Update

void Update( const unsigned char* pSrc, unsigned int nSrcLength );

void Update( const char* pSrc );

Parameters

 pSrc

    [in]

    In the first case - pointer to the continuous memory block with which to update the CFastCRC16 object.

    In the second case - pointer to the null-terminated string with which to update the CFastCRC16 object.

 nSrcLength

    [in] Length in bytes of the memory block.

Remarks

  • void Update( const unsigned char* pSrc, unsigned int nSrcLength );

Updates the CFastCRC16 object with the memory block pointed by pSrc. Call this member function for each continuous memory block of the data for which the checksum is calculated.

  • void Update( const char* pSrc );

Updates the CFastCRC16 object with the null-terminated string pointed by pSrc. Call this member function for each null-terminated string for which the checksum is calculated.

To retrieve the checksum after using Update, call Final.

Example

See the example for CFastCRC16::Final.

 

CFastCRC16 Overview   |   Class Members   |   Useful Links   |   HashCalc

 

See Also    CFastCRC16::Final


 

 

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