QuickHash Library Type Library

CRC32_CalculateStr

void CRC32_CalculateStr( [out]CRC32_Digest* pDigest, [ in , string ] unsigned char* pSrc );

Parameters

 pDigest

    [out] A memory buffer that will receive the checksum.

     Note. All predefined types are specified in the Predefined Types List.

 pSrc

    [in] A null-terminated string for which to calculate the checksum.

Remarks

Calculates the CRC32 checksum for the null-terminated string specified by pSrc. The checksum is retrieved in the pDigest memory buffer.

VB Example

Private Sub MyButton_Click()   
    Dim Checksum As CRC32_Digest
    Dim MyStrData As String
    MyStrData = "Hello World!"
    'Get the checksum
    CRC32_CalculateStr Checksum, MyStrData
    'Show the hexadecimal representation of the checksum
    MsgBox QHASH_ConvertToHex(Checksum.Value(0), CRC32_DIGESTSIZE, True)
End Sub

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

 

See Also    CRC32_CalculateStrHex, CRC32_Calculate, CRC32_CalculateHex, QHASH_ConvertToHex


 

 

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