102 if ((
unsigned)len > stream->
avail_in) {
103 rs_trace(
"copy limited to " FMT_SIZE
" available input bytes",
109 rs_trace(
"copy limited to " FMT_SIZE
" available output bytes",
Public header for librsync.
int rs_buffers_copy(rs_buffers_t *stream, int max_len)
Copy up to max_len bytes from input of stream to its output.
void rs_buffers_check_exit(rs_buffers_t const *stream)
Assert input is empty or output is full.
Description of input and output buffers.
char * next_in
Next input byte.
size_t avail_in
Number of bytes available at next_in.
size_t avail_out
Remaining free space at next_out.
char * next_out
Next output byte should be put there.