QuickHash Library Type Library

QHASH_ConvertToHexLE

BSTR QHASH_ConvertToHexLE( [ in, size_is( nSrcLength ) ]const void* pByte, [ in ] int nSrcLength, [ in ]boolean bUpper );

Parameters

 pByte

    [in] A byte array to convert.

nSrcLength

    [in] Length of the byte array. 

bUpper

    [in] Uppercase flag. If bUpper is False, the result represents a lowercase string, otherwise it represents an uppercase string.

Remarks

Returns the hexadecimal representation of a block of bytes using 'little-endian' order.

Note. CRC32, CRC16 and CRC16C algorithms use 'little-endian' representation of the checksum. All other algorithms use 'big-endian' representation of the message digest/checksum.

VB Example

Private Sub MyButton_Click()
    Dim Digest As QHASH_Digest
    'Calculate the digest 
    QHASH_StringDigest CRC32_ALGID, Digest, "Hello World!"
    'Show the hexadecimal representation of the digest
    MsgBox QHASH_ConvertToHexLE(Digest.Value(0), CRC32_DIGESTSIZE, True)
End Sub

 

 

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

 

See Also    QHASH_ConvertToHex, QHASH_StringDigest


 

 

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