Checksum.gComputeChecksumForData

Computes the checksum for a binary data of length. This is a convenience wrapper for g_checksum_new(), g_checksum_get_string() and g_checksum_free(). The hexadecimal string returned will be in lower case. Since 2.16

class Checksum
static
string
gComputeChecksumForData

Parameters

checksumType GChecksumType

a GChecksumType

data char*

binary blob to compute the digest of

length gsize

length of data

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