docs: Add comments to some tricky parts
This commit is contained in:
parent
c9cc1907ac
commit
7ab4c55550
1 changed files with 3 additions and 0 deletions
|
@ -82,8 +82,11 @@ class PlaylistArchiveStream extends TarArchive
|
|||
protected function send($data)
|
||||
{
|
||||
$pos = ftell($this->buffer);
|
||||
|
||||
// Add data to the buffer.
|
||||
fwrite($this->buffer, $data);
|
||||
if ($pos !== false) {
|
||||
// Rewind so that stream_read() can later read this data.
|
||||
fseek($this->buffer, $pos);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue