librsync  2.0.2
Functions
emit.h File Reference

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_end_cmd (rs_job_t *)
 Write an END 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...
 

Detailed Description

How to emit commands to the client.

Definition in file emit.h.

Function Documentation

◆ rs_emit_delta_header()

void rs_emit_delta_header ( rs_job_t )

Write the magic for the start of a delta.

Definition at line 43 of file emit.c.

◆ rs_emit_literal_cmd()

void rs_emit_literal_cmd ( rs_job_t ,
int  len 
)

Write a LITERAL command.

Definition at line 50 of file emit.c.

◆ rs_emit_end_cmd()

void rs_emit_end_cmd ( rs_job_t )

Write an END command.

Definition at line 120 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 77 of file emit.c.