crc32.d.ts 490 B

123456789101112131415
  1. /**
  2. * 以下 class 实现参考
  3. * https://github.com/Stuk/jszip/blob/d4702a70834bd953d4c2d0bc155fad795076631a/lib/crc32.js
  4. * 该实现主要针对大文件优化、对计算的值进行了 `>>> 0` 运算(为与服务端保持一致)
  5. */
  6. export declare class CRC32 {
  7. private crc;
  8. private table;
  9. private makeTable;
  10. private append;
  11. private compute;
  12. private readAsUint8Array;
  13. file(file: File): Promise<number>;
  14. static file(file: File): Promise<number>;
  15. }