()
| 222 | } |
| 223 | |
| 224 | async _updateProgress() { |
| 225 | if (!this._progressCallback) return; |
| 226 | // We use chars and bytes interchangeably for simplicity. This causes us to |
| 227 | // slightly underestimate progress. |
| 228 | this._progressCallback( |
| 229 | this._processedInputChars / this._totalInputBytes, |
| 230 | this._processedInputChars); |
| 231 | } |
| 232 | |
| 233 | async _processChunk(chunk) { |
| 234 | const prevProcessedInputChars = this._processedInputChars; |