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

emit.h File Reference

How to emit commands to the client. More...

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.
void rs_emit_literal_cmd (rs_job_t *, int len)
 Write a LITERAL command.
void rs_emit_end_cmd (rs_job_t *)
 Write an END command.
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.

Detailed Description

How to emit commands to the client.

Definition in file emit.h.


Function Documentation

void rs_emit_delta_header ( rs_job_t job  ) 

Write the magic for the start of a delta.

Definition at line 40 of file emit.c.

void rs_emit_literal_cmd ( rs_job_t job,
int  len 
)

Write a LITERAL command.

Definition at line 47 of file emit.c.

void rs_emit_end_cmd ( rs_job_t job  ) 

Write an END command.

Definition at line 123 of file emit.c.

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 80 of file emit.c.