Implement animated scroll to base event for replies

This commit is contained in:
Jaiwanth
2021-05-26 18:00:27 +05:30
parent 7286aa28e1
commit 334b7ef04a
2 changed files with 39 additions and 20 deletions

View File

@@ -1,17 +1,17 @@
/*Not to be reviewed now*/
class fileCheckSum {
protected CRC32: number;
public table: any[];
constructor() {
this.CRC32 = -1
}
// 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
}
}
// 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
// }
// }