rittenhop-ghost/versions/5.94.2/node_modules/lib0/hash/rabin-uncached.d.ts

29 lines
702 B
TypeScript

export class RabinUncachedEncoder {
/**
* @param {Uint8Array} m assert(m[0] === 1)
*/
constructor(m: Uint8Array);
m: Uint8Array;
blen: number;
bs: Uint8Array;
/**
* This describes the position of the most significant byte (starts with 0 and increases with
* shift)
*/
bpos: number;
/**
* Add/Xor/Substract bytes.
*
* Discards bytes that are out of range.
* @todo put this in function or inline
*
* @param {Uint8Array} cs
*/
add(cs: Uint8Array): void;
/**
* @param {number} byte
*/
write(byte: number): void;
getFingerprint(): Uint8Array;
}
//# sourceMappingURL=rabin-uncached.d.ts.map