Checksum.computeChecksumForData

Computes the checksum for a binary data of length. This is a convenience wrapper for Checksum.new, Checksum.getString and Checksum.free.

The hexadecimal string returned will be in lower case.

class Checksum
static
string
computeChecksumForData

Parameters

checksumType GChecksumType
data char[]

binary blob to compute the digest of

Return Value

Type: string

the digest of the binary data as a string in hexadecimal. The returned string should be freed with g_free() when done using it.

Meta

Since

2.16