search for: token_rel

Displaying 4 results from an estimated 4 matches for "token_rel".

2020 Feb 06
0
[PATCH] Add support for zstd compression
...(last_token == -2) { + run_start = token; + + } else if (nb != 0 || token != last_token + 1 + || token >= run_start + 65536) { + + /* output previous run */ + r = run_start - last_run_end; + n = last_token - run_start; + + if (r >= 0 && r <= 63) { + write_byte(f, (n==0? TOKEN_REL: TOKENRUN_REL) + r); + } else { + write_byte(f, (n==0? TOKEN_LONG: TOKENRUN_LONG)); + write_int(f, run_start); + } + if (n != 0) { + write_byte(f, n); + write_byte(f, n >> 8); + } + last_run_end = last_token; + run_start = token; + } + + last_token = token; + + if (nb || flush_p...
2003 Jun 27
1
bug? -z option and large compressed data
...================================ RCS file: /vol/cvs/datacube/src/auxcmd/rsync/token.c,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 token.c --- token.c 8 Apr 2002 08:35:30 -0000 1.1.1.1 +++ token.c 27 Jun 2003 11:24:25 -0000 @@ -125,7 +125,8 @@ static void simple_send_token(int f,int #define TOKEN_REL 0x80 /* + 6-bit relative token number */ #define TOKENRUN_REL 0xc0 /* ditto with 16-bit run count */ -#define MAX_DATA_COUNT 16383 /* fit 14 bit count into 2 bytes with flags */ +/* must be bigger than block_size + deflate()'s overhead */ +#define MAX_DATA_COUNT CHUNK_SIZE /* For coding r...
2001 Aug 06
1
merge rsync+ into rsync (was Re: rsync-2.4.7 NEWS file)
> Just curious: what about the rsync+ patch? Thanks for the reminder. I've just committed Jos's rsync+ patch onto the "branch_mbp_rsyncplus_merge" branch. If it works OK and nobody screams I will move it across onto the main tree tomorrow or Wednesday. I see the patch doesn't add documentation about the new options to the man page, so we should fix that in the future.
2007 Sep 22
0
rsync build on IA64 using icc
...en.c(53): remark #810: conversion from "int" to "char" may lose significant bits *t++ = tolower(*(unsigned char *)f); ^ token.c(200): remark #810: conversion from "int" to "unsigned char" may lose significant bits write_byte(f, (n==0? TOKEN_REL: TOKENRUN_REL) + r); ^ token.c(202): remark #810: conversion from "int" to "unsigned char" may lose significant bits write_byte(f, (n==0? TOKEN_LONG: TOKENRUN_LONG)); ^ token.c(206): remark #810: conversion from "int" to &qu...