mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-27 09:21:55 +02:00
18 lines
490 B
TypeScript
18 lines
490 B
TypeScript
/*Not to be reviewed now*/
|
|
// class fileCheckSum {
|
|
// protected CRC32: number;
|
|
// public table: any[];
|
|
// constructor() {
|
|
// this.CRC32 = -1
|
|
// }
|
|
|
|
// protected append(data: any[]) {
|
|
// let crc = this.CRC32 | 0;
|
|
// const table = this.table;
|
|
// for (let offset = 0, len = data.length | 0; offset < len; offset++) {
|
|
// crc = (crc >>> 8) ^ table[(crc ^ data[offset]) & 0xFF]
|
|
// }
|
|
// this.CRC32 = crc
|
|
// }
|
|
// }
|