(chunk)
| 445 | } |
| 446 | |
| 447 | _onChunkRead(chunk) { |
| 448 | this._offset += chunk.byteLength; |
| 449 | this._partitionSize += chunk.byteLength; |
| 450 | this._onChunk(chunk); |
| 451 | if (this.isFileEnd()) return; |
| 452 | if (this._isPartitionEnd()) { |
| 453 | this._onPartitionEnd(this._offset); |
| 454 | return; |
| 455 | } |
| 456 | this._readChunk(); |
| 457 | } |
| 458 | |
| 459 | repeatPartition() { |
| 460 | this._offset -= this._partitionSize; |
no test coverage detected