UNPKG

820 BTypeScriptView Raw
1export const StandardIrreducible8: Uint8Array;
2export const StandardIrreducible16: Uint8Array;
3export const StandardIrreducible32: Uint8Array;
4export const StandardIrreducible64: Uint8Array;
5export const StandardIrreducible128: Uint8Array;
6export class RabinEncoder {
7 /**
8 * @param {Uint8Array} m assert(m[0] === 1)
9 */
10 constructor(m: Uint8Array);
11 m: Uint8Array;
12 blen: number;
13 bs: Uint8Array;
14 cache: Uint8Array;
15 /**
16 * This describes the position of the most significant byte (starts with 0 and increases with
17 * shift)
18 */
19 bpos: number;
20 /**
21 * @param {number} byte
22 */
23 write(byte: number): void;
24 getFingerprint(): Uint8Array;
25}
26export function fingerprint(irreducible: Uint8Array, data: Uint8Array): Uint8Array;
27//# sourceMappingURL=rabin.d.ts.map
\No newline at end of file