The Rollsum class implementation of the original rsync rollsum.
More...
Go to the source code of this file.
The Rollsum class implementation of the original rsync rollsum.
Definition in file rollsum.h.
◆ ROLLSUM_CHAR_OFFSET
#define ROLLSUM_CHAR_OFFSET 31 |
◆ Rollsum
typedef struct Rollsum Rollsum |
◆ RollsumUpdate()
void RollsumUpdate |
( |
Rollsum * | sum, |
|
|
const unsigned char * | buf, |
|
|
size_t | len ) |
◆ RollsumInit()
◆ RollsumRotate()
void RollsumRotate |
( |
Rollsum * | sum, |
|
|
unsigned char | out, |
|
|
unsigned char | in ) |
|
inlinestatic |
◆ RollsumRollin()
void RollsumRollin |
( |
Rollsum * | sum, |
|
|
unsigned char | in ) |
|
inlinestatic |
◆ RollsumRollout()
void RollsumRollout |
( |
Rollsum * | sum, |
|
|
unsigned char | out ) |
|
inlinestatic |
◆ RollsumDigest()
uint32_t RollsumDigest |
( |
Rollsum * | sum | ) |
|
|
inlinestatic |