compute_for_bytes
Description:
[ Version ( since = "2.34" ) ]
[ CCode ( cname = "g_compute_checksum_for_bytes" ) ]
public static string compute_for_bytes (ChecksumType checksum_type, Bytes data)
[ CCode ( cname = "g_compute_checksum_for_bytes" ) ]
public static string compute_for_bytes (ChecksumType checksum_type, Bytes data)
Computes the checksum for a binary data
.
This is a convenience wrapper for Checksum,
get_string and g_checksum_free
.
The hexadecimal string returned will be in lower case.
Parameters:
checksum_type | |
data |
binary blob to compute the digest of |
Returns:
the digest of the binary data as a string in hexadecimal, or null if
Checksum fails for |