Public Member Functions | |
| UInt32 | ComputeHash (byte[] buffer, int offset, UInt16 count) |
| Computes the weak hash for a block of data. | |
| UInt32 | RollHash (int count, byte dropValue, byte addValue) |
| Recalculates the weak hash droping the dropvalue and including the addValue. | |
| UInt32 Simias::Sync::Delta::WeakHash::ComputeHash | ( | byte[] | buffer, | |
| int | offset, | |||
| UInt16 | count | |||
| ) | [inline] |
Computes the weak hash for a block of data.
| buffer | The buffer containing the data. | |
| offset | The offset in the block to start. | |
| count | The number of bytes to include in the hash. |
| UInt32 Simias::Sync::Delta::WeakHash::RollHash | ( | int | count, | |
| byte | dropValue, | |||
| byte | addValue | |||
| ) | [inline] |
Recalculates the weak hash droping the dropvalue and including the addValue.
| count | ||
| dropValue | The byte to drop from the hash. This byte was at the begining of the last hash. | |
| addValue | The byte to add to the hash. This byte was one byte past the last hash block. |
1.5.6