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)
|
protected function send($data)
|
||||||
{
|
{
|
||||||
$pos = ftell($this->buffer);
|
$pos = ftell($this->buffer);
|
||||||
|
|
||||||
|
// Add data to the buffer.
|
||||||
fwrite($this->buffer, $data);
|
fwrite($this->buffer, $data);
|
||||||
if ($pos !== false) {
|
if ($pos !== false) {
|
||||||
|
// Rewind so that stream_read() can later read this data.
|
||||||
fseek($this->buffer, $pos);
|
fseek($this->buffer, $pos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue