QuickHash Library Type Library

CRC16C_CalculateStr

void CRC16C_CalculateStr( [out]CRC16C_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 CRC16C 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 CRC16C_Digest
    Dim MyStrData As String
    MyStrData = "Hello World!"
    'Get the checksum
    CRC16C_CalculateStr Checksum, MyStrData
    'Show the hexadecimal representation of the checksum
    MsgBox QHASH_ConvertToHex(Checksum.Value(0), CRC16C_DIGESTSIZE, True)
End Sub

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

 

See Also    CRC16C_CalculateStrHex, CRC16C_Calculate, CRC16C_CalculateHex, QHASH_ConvertToHex


 

 

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