Write EOL n times.

@param int $n

@return self
761536
public function eol(int $n = 1): self
    {
        return $this->doWrite(\str_repeat(PHP_EOL, \max($n, 1)));
    }
821946
public function read($n)
    {
        if ($this->offset >= strlen($this->buffer)) {
            if (!($rv = $this->populateBuffer())) {
                return $rv;
            }
        }
        return $this->readBuffer($n);
    }
382858
public function getNextBytes($n)
	{
		$s = "";
		$nRem = $n;
		while ($nRem > 0)
		{
			if ($this->_outputPos == 64)
				$this->nextOutput();
			$nCopy = min(64 - $this->_outputPos, $nRem);
			$s .= substr($this->_output, $this->_outputPos, $nCopy);

			$nRem -= $nCopy;
			$this->_outputPos += $nCopy;
		}
		return $s;
	}
452931
public function write($msg, $len = null)
    {
        $this->connected->write($msg, $len);

        return $this;
    }
1078359
public static function uniform(int $n) : self
    {
        if ($n < 1) {
            throw new InvalidArgumentException('The number of elements'
                . " must be greater than 0, $n given.");
        }

        $a = [];

        for ($i = 0; $i < $n; $i++) {
            $a[] = rand(-PHP_INT_MAX, PHP_INT_MAX) / PHP_INT_MAX;
        }

        return static::quick($a);
    }
645288
public static function takeNth($n, $coll)
    {
        $coll = self::iterator($coll);
        for ($coll->rewind(); $coll->valid(); $coll->valid() && $coll->next()) {
            yield $coll->current();
            for ($i = 0; $i < $n - 1 && $coll->valid(); ++$i) {
                $coll->next();
            }
        }
    }
1070509
public function skip(int $n) : int
    {
        if ($n <= 0) {
            return 0;
        }

        $skipped = 0;
        $skipLimit = min(self::MAX_SKIP_BUFFER_SIZE, $n);
        while ($skipped < $n) {
            $buf = $this->read(min($skipLimit, $n - $skipped));
            if ($buf === null) {
                break;
            }
            $skipped += strlen($buf);
        }
        return $skipped;
    }
542959
public function setNum(int $n): void
    {
        $this->num     = $n;
        $this->numText = $n . ' ';
    }
551353
public function write()
    {
        if (!$this->opened) {
            throw new \RuntimeException('Writer is not opened.');
        }
        $args = func_get_args();
        if (count($args) > 1) {
            $line = call_user_func_array('sprintf', $args);
        } else {
            $line = $args[0];
        }
        $lines = explode("\n", $line);
        foreach ($lines as $line) {
            if ($line) {
                $line = $this->getIndentation().$line;
            }
            $this->buffer[] = $line;
        }

        return $this;
    }
1064710
public function right($n)
    {
        if ($n < 0 || $n > $this->size()) {
            return new MString($this->text);
        }

        $pos = $n * -1;
        $result = substr($this->text, $pos);

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

        return new MString($result);
    }
775846
public function left($n)
    {
        if ($n < 0 || $n > $this->size()) {
            return new MString($this->text);
        }

        $result = substr($this->text, 0, $n);

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

        return new MString($result);
    }
982274
public function head(int $n = 10) : self
    {
        return self::quick(array_slice($this->samples, 0, $n));
    }
1253904
public function setWriteConcern($w, $timeout = 10000)
    {
        if (!$this->getMongoCollection()->setWriteConcern($w, (int) $timeout)) {
            throw new Exception('Error setting write concern');
        }

        return $this;
    }
420942
public function modPow(self $e, self $n)
    {
        $value = gmp_powm($this->value, $e->value, $n->value);

        return self::createFromGMPResource($value);
    }
912763
public function write(WriterInterface $writer)
    {
        foreach ($this->childs as $indice) {
            $indice->write($writer);
        }

        return $this;
    }
1031491
public function withPointMovedLeft(int $n) : BigDecimal
    {
        if ($n === 0) {
            return $this;
        }

        if ($n < 0) {
            return $this->withPointMovedRight(-$n);
        }

        return new BigDecimal($this->value, $this->scale + $n);
    }
497504
public function last($n = 1) {
		if ($this->_count - $n < 0) {
			return NULL;
		}
		return $this->_stack[$this->_count - $n];
	}