etebase
Version:
Etebase TypeScript API for the web and node
15 lines (14 loc) • 368 B
TypeScript
export declare class Rollsum {
private s1;
private s2;
private window;
private wofs;
constructor();
update(ch: number): void;
private rollsumAdd;
/**
* Returns true if splitting is needed, that is when the current digest
* reaches the given number of the same consecutive low bits.
*/
split(mask: number): boolean;
}