docs: Add comments to some tricky parts

This commit is contained in:
Pierre Rudloff 2019-04-20 01:19:55 +02:00
parent c9cc1907ac
commit 7ab4c55550

View file

@ -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);
}
}