UNPKG

702 BTypeScriptView Raw
1export class RabinUncachedEncoder {
2 /**
3 * @param {Uint8Array} m assert(m[0] === 1)
4 */
5 constructor(m: Uint8Array);
6 m: Uint8Array;
7 blen: number;
8 bs: Uint8Array;
9 /**
10 * This describes the position of the most significant byte (starts with 0 and increases with
11 * shift)
12 */
13 bpos: number;
14 /**
15 * Add/Xor/Substract bytes.
16 *
17 * Discards bytes that are out of range.
18 * @todo put this in function or inline
19 *
20 * @param {Uint8Array} cs
21 */
22 add(cs: Uint8Array): void;
23 /**
24 * @param {number} byte
25 */
26 write(byte: number): void;
27 getFingerprint(): Uint8Array;
28}
29//# sourceMappingURL=rabin-uncached.d.ts.map
\No newline at end of file