数通智联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

25 lines
683 B

export interface HashingResponse {
success: boolean;
result?: string | Int32Array;
}
export declare class Md5FileHasher {
private _callback;
private _async;
private _partSize;
private _reader;
private _md5;
private _part;
private _blob;
constructor(_callback: (r: HashingResponse) => void, // Callback to return the result
_async?: boolean, // Async version is not always available in a web worker
_partSize?: number);
/**
* Hash a blob of data in the worker
* @param blob Data to hash
*/
hash(blob: any): void;
private _fail;
private _hashData;
private _processPart;
private _configureReader;
}