(byte: number)
| 52 | } |
| 53 | |
| 54 | writeByte(byte: number): void { |
| 55 | this.carry |= (byte & 0xff) << (8 * this.carryBytes) |
| 56 | this.carryBytes++ |
| 57 | this.length++ |
| 58 | |
| 59 | if (this.carryBytes === 4) { |
| 60 | this._mix(this.carry >>> 0) |
| 61 | this.carry = 0 |
| 62 | this.carryBytes = 0 |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | update(chunk: symbol | string | number | bigint): void { |
| 67 | switch (typeof chunk) { |
no test coverage detected