Returns the size of the limited subset of data
Overrides StreamDecoratorTrait::getSize
public function getSize() : ?int { if (null === ($length = $this->stream ->getSize())) { return null; } elseif ($this->limit === -1) { return $length - $this->offset; } else { return min($this->limit, $length - $this->offset); } }