| Author | Dave Jarvis <email> |
|---|---|
| Date | 2026-02-21 17:23:04 GMT-0800 |
| Commit | c3d1db9c191793f03c0f554eaf290a8ed7ed6e77 |
| Parent | 1074112 |
| <?php | ||
| require_once __DIR__ . '/StreamReader.php'; | ||
| + | ||
| class CompressionStream { | ||
| private Closure $pumper; | ||
| } | ||
| - public function stream( StreamReader $handle, int $chunkSize = 8192 ): Generator { | ||
| + public function stream( | ||
| + StreamReader $stream, | ||
| + int $chunkSize = 8192 | ||
| + ): Generator { | ||
| $done = false; | ||
| - while( !$done && !$handle->eof() ) { | ||
| - $chunk = $handle->read( $chunkSize ); | ||
| + while( !$done && !$stream->eof() ) { | ||
| + $chunk = $stream->read( $chunkSize ); | ||
| $done = $chunk === ''; | ||
| Delta | 7 lines added, 3 lines removed, 4-line increase |
|---|