$treeview $search $mathjax $extrastylesheet
librsync  2.3.0
$projectbrief
$projectbrief
$searchbox

readsums.c File Reference

Load signatures from a file. More...

Go to the source code of this file.

Functions

static rs_result rs_loadsig_s_weak (rs_job_t *job)
static rs_result rs_loadsig_s_strong (rs_job_t *job)
static rs_result rs_loadsig_add_sum (rs_job_t *job, rs_strong_sum_t *strong)
 Add a just-read-in checksum pair to the signature block.
static rs_result rs_loadsig_s_stronglen (rs_job_t *job)
static rs_result rs_loadsig_s_blocklen (rs_job_t *job)
static rs_result rs_loadsig_s_magic (rs_job_t *job)
rs_job_trs_loadsig_begin (rs_signature_t **signature)
 Read a signature from a file into an rs_signature structure in memory.

Detailed Description

Load signatures from a file.

Definition in file readsums.c.


Function Documentation

static rs_result rs_loadsig_add_sum ( rs_job_t job,
rs_strong_sum_t *  strong 
) [static]

Add a just-read-in checksum pair to the signature block.

Definition at line 41 of file readsums.c.

rs_job_t* rs_loadsig_begin ( rs_signature_t **   ) 

Read a signature from a file into an rs_signature structure in memory.

Once there, it can be used to generate a delta to a newer version of the file.

Note:
After loading the signatures, you must call rs_build_hash_table() before you can use them.

Definition at line 137 of file readsums.c.