![]() |
![]() |
![]() |
![]() |
<GChecksum>
An opaque structure representing a checksumming operation.
To create a new GChecksum, use g_checksum_new()
. To free
a GChecksum, use g_checksum_free()
.
(define-values (%return) (checksum:copy self))
Copies a GChecksum. If checksum
has been closed, by calling
g_checksum_get_string()
or g_checksum_get_digest()
, the copied
checksum will be closed as well.
(define-values (%return) (checksum:get-string self))
Gets the digest as a hexadecimal string.
Once this function has been called the GChecksum can no longer be
updated with g_checksum_update()
.
The hexadecimal characters will be lower case.
(define-values () (checksum:reset self))
Resets the state of the checksum
back to its initial state.
(define-values () (checksum:update self data))
Feeds data
into an existing GChecksum. The checksum must still be
open, that is g_checksum_get_string()
or g_checksum_get_digest()
must
not have been called on checksum
.