librsync  2.3.4
Functions
readsums.c File Reference

Load signatures from a file. More...

Include dependency graph for readsums.c:

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. More...
 
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. More...
 

Detailed Description

Load signatures from a file.

Definition in file readsums.c.

Function Documentation

◆ rs_loadsig_s_weak()

static rs_result rs_loadsig_s_weak ( rs_job_t job)
static

Definition at line 54 of file readsums.c.

◆ rs_loadsig_s_strong()

static rs_result rs_loadsig_s_strong ( rs_job_t job)
static

Definition at line 69 of file readsums.c.

◆ rs_loadsig_add_sum()

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 39 of file readsums.c.

◆ rs_loadsig_s_stronglen()

static rs_result rs_loadsig_s_stronglen ( rs_job_t job)
static

Definition at line 82 of file readsums.c.

◆ rs_loadsig_s_blocklen()

static rs_result rs_loadsig_s_blocklen ( rs_job_t job)
static

Definition at line 104 of file readsums.c.

◆ rs_loadsig_s_magic()

static rs_result rs_loadsig_s_magic ( rs_job_t job)
static

Definition at line 122 of file readsums.c.

◆ rs_loadsig_begin()

rs_job_t * rs_loadsig_begin ( rs_signature_t **  signature)

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 135 of file readsums.c.