compute_for_string


Description:

[ CCode ( cname = "g_compute_checksum_for_string" ) ]
public static string compute_for_string (ChecksumType checksum_type, string str, size_t length = -1)

Computes the checksum of a string.

The hexadecimal string returned will be in lower case.

Parameters:

checksum_type

a ChecksumType

str

the string to compute the checksum of

length

the length of the string, or -1 if the string is null-terminated.

Returns:

the checksum as a hexadecimal string, or null if Checksum fails for checksum_type. The returned string should be freed with g_free when done using it.