librdf_new_digest
Name
librdf_new_digest -- Constructor - create a new librdf_digest object
Synopsis
librdf_digest* librdf_new_digest
(librdf_world * world, char * name);
Arguments
- world
redland world object
- name
the digest name to use to create this digest
Description
After construction, data should be added to the digest using
librdf_digest_update
or librdf_digest_update_string
with
librdf_digest_final
to signify finishing. Then the digest
value can be returned directly with librdf_digest_get_digest
of librdf_digest_get_digest_length
bytes or as a hex encoded
string with librdf_digest_to_string
. The digest can be
re-initialised for new data with librdf_digest_init
.
Return value
new librdf_digest
object or NULL