public class Checksum extends Object
| Constructor and Description |
|---|
Checksum() |
| Modifier and Type | Method and Description |
|---|---|
static long |
a(byte[] block)
the function "a" from the rsync rolling checksum algorithm
|
static long |
b(byte[] block,
long k,
long l)
the function "b" from the rsync algorithm
|
static long |
checksum(byte[] block,
long start,
long finish)
compute the checksum for the given data block
|
static byte[] |
md5(byte[] block) |
static long |
sum(long a,
long b) |
public static long a(byte[] block)
block - public static long b(byte[] block,
long k,
long l)
block - k - - startl - - finishpublic static long sum(long a,
long b)
public static long checksum(byte[] block,
long start,
long finish)
block - - datastart - - start index of the block in the complete datafinish - - end index of the block in the complete datapublic static byte[] md5(byte[] block)
Copyright © 2010–2016 UNICORE. All rights reserved.