librsync  2.3.4
Functions
emit.h File Reference

encoding output routines. More...

Include dependency graph for emit.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void rs_emit_delta_header (rs_job_t *)
 Write the magic for the start of a delta. More...
 
void rs_emit_literal_cmd (rs_job_t *, int len)
 Write a LITERAL command. More...
 
void rs_emit_copy_cmd (rs_job_t *job, rs_long_t where, rs_long_t len)
 Write a COPY command for given offset and length. More...
 
void rs_emit_end_cmd (rs_job_t *)
 Write an END command. More...
 

Detailed Description

encoding output routines.

Todo:
Pluggable encoding formats: gdiff-style, rsync 24, ed (text), Delta HTTP.

Definition in file emit.h.

Function Documentation

◆ rs_emit_delta_header()

void rs_emit_delta_header ( rs_job_t job)

Write the magic for the start of a delta.

Definition at line 31 of file emit.c.

◆ rs_emit_literal_cmd()

void rs_emit_literal_cmd ( rs_job_t job,
int  len 
)

Write a LITERAL command.

Definition at line 37 of file emit.c.

◆ rs_emit_copy_cmd()

void rs_emit_copy_cmd ( rs_job_t job,
rs_long_t  where,
rs_long_t  len 
)

Write a COPY command for given offset and length.

There is a choice of variable-length encodings, depending on the size of representation for the parameters.

Definition at line 66 of file emit.c.

◆ rs_emit_end_cmd()

void rs_emit_end_cmd ( rs_job_t job)

Write an END command.

Definition at line 105 of file emit.c.