librdf_new_digest_from_factory

Name

librdf_new_digest_from_factory --  Constructor - create a new librdf_digest object

Synopsis

librdf_digest* librdf_new_digest_from_factory (librdf_world * world, librdf_digest_factory * factory);

Arguments

world

redland world object

factory

the digest factory 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