public function getSize() : ?int
	{
		if (! \is_resource($this->resource))
		{
			return null;
		}

		$stats = \fstat($this->resource);

		if (false === $stats)
		{
			return null;
		}

		return $stats['size'];
	}