/** * {@inheritdoc} */ public function seek($offset, $whence = SEEK_SET) { if ($whence !== SEEK_SET || $offset < 0) { return false; } $offset += $this->offset; if ($this->limit !== -1) { if ($offset > $this->offset + $this->limit) { $offset = $this->offset + $this->limit; } } return $this->stream->seek($offset); }
/** * {@inheritdoc} */ public function seek($offset, $whence = SEEK_SET) { $this->initialize(); return $this->stream !== null ? $this->stream->seek($offset, $whence) : false; }