FastCRC Library Type Library


void FCRC32_UpdateStr( [ in,out ]long* pCRC, [ in , string ] unsigned char* pSrc );



    [in/out] The crc variable.


    [in] A null-terminated string with which to update the crc variable.


Updates the crc variable specified by pCRC with the null-terminated string specified by pSrc. Call this function for each null-terminated string for which the checksum is calculated. To retrieve the checksum after using FCRC32_UpdateStr, call FCRC32_Final.

Note. Before the first call to FCRC32_Update, FCRC32_UpdateStr or FCRC32_Final functions, the crc variable must be initialized with FCRC32_Init.

VB Example

Private Sub MyButton_Click()   
   Dim strdata As String
   strdata = "Hello World!"

   'Initialize the crc variable to store intermediate results between function calls
   Dim crcvar As Long
   FCRC32_Init crcvar

   'Update the crc variable
   FCRC32_UpdateStr crcvar, strdata

   'Get the checksum
   Dim checksum As Long
   checksum = FCRC32_Final(crcvar)

   'Show the hexadecimal representation of the checksum
   MsgBox FCRC_LongToHex32(checksum, True)
End Sub

Type Library Overview   |   Type Library Functions   |   Useful Links   |   HashCalc


See Also    FCRC32_Update, FCRC32_Final, FCRC32_Init, FCRC_LongToHex32



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