@param float $size

@throws \OutOfRangeException
342738
public function setSize(float $size): void
    {
        if ($size < 0 || $size > 90000000.0) {
            throw new \OutOfRangeException('The size must be on [0, 90000000.0].');
        }

        $this->size = (float) $size;
    }
649116
public function limit($start, $size) {
        LimitImpl::limitWithOffset($this->context, $start, $size);
        return new ForUpdateRule($this->context);
    }
472960
public function truncate(int $size): bool
    {
        if (!ftruncate($this->handle, (int) $size)) {
            $message = 'Could not truncate file.';
            if ($error = error_get_last()) {
                $message .= sprintf(' Errno: %d; %s', $error['type'], $error['message']);
            }
            throw new FileException($message);
        }

        return true;
    }
904149
public function assertBrowserWindowHeight($size) {
    $actual = $this->getSession()->evaluateScript('return window.outerHeight;');
    if ($actual != $size) {
      throw new ExpectationException("Browser window height expected to be {$size} but it is {$actual} instead.", $this->getSession());
    }
  }
328616
protected function postamble($size)
    {
        $postamble = $this->getPostamble($size);
        if ($postamble > 0) {
            $this->writeLines($postamble);
        }

        $this->resetCursor();
    }
1304330
public function setWatermarkSize($size)
    {
        if (is_array($size)) {
            $this->setWatermarkWidth($size['width'])->setWatermarkHeight($size['height']);
        }
        return $this;
    }
1293404
public static function run($size, &$c1, &$c2)
    {
        if( $size > 0 )
        {
            if( $size <= $c2 )
            {
                $rate = $c2 / $size; $c2 = $size; $c1 = $c1 / $rate;
            }
            else
            {
                $rate = $size / $c2; $c2 = $size; $c1 = $c1 * $rate;
            }
        }
    }
625441
public function setPageSize($size)
    {
        $this->pageSize = ($size === null ? self::PAGE_SIZE : (int)$size);
        if ($this->pageSize < 0)
            $this->pageSize = self::PAGE_SIZE;

        return $this;
    }
1052935
public function createFloatingPointColumn(string $name, int $size): FloatingPointColumn {
		$column = new SqliteFloatingPointColumn($name);
		$this->table->addColumn($column);
		return $column;
	}
642600
public function setSize($size = null) {
        $this->_size = is_int($size)? $size : self::DEFAULT_SIZE;
    }
447374
public static function iniSizeToBytes($size)
    {
        if (\is_numeric($size)) {
            return (int)$size;
        }

        $suffix = \strtoupper(\substr($size, -1));
        $strippedSize = \substr($size, 0, -1);

        if (!\is_numeric($strippedSize)) {
            throw new \InvalidArgumentException("$size is not a valid ini size");
        }

        if ($strippedSize <= 0) {
            throw new \InvalidArgumentException("Expect $size to be higher isn't zero or lower");
        }

        if ($suffix === 'K') {
            return $strippedSize * 1024;
        }
        if ($suffix === 'M') {
            return $strippedSize * 1024 * 1024;
        }
        if ($suffix === 'G') {
            return $strippedSize * 1024 * 1024 * 1024;
        }
        if ($suffix === 'T') {
            return $strippedSize * 1024  * 1024 * 1024 * 1024;
        }

        return (int)$size;
    }
167622
public function read(int $size = null)
    {
        if ($this->file == null) {
            throw new Server500(new \ArrayObject(array("explain" =>
                "Cannot read file for unopened file",
                "solution" =>
                    "Please open the file with [FileListener::open] before trying to get read it.")));
        }
        if ($size === null) {
            return (fread($this->file, $this->size()));
        } else {
            return (fread($this->file, $size));
        }
    }
1217544
public function floatRight($size = null)
    {
        if (empty($size)) {
            $this->attributes->addAttributeClass('float-right');
        } elseif (in_array($size, ['xs', 'sm', 'md', 'lg', 'xl'])) {
            $this->attributes->addAttributeClass('float-' . $size . '-right');
        }

        return $this;
    }
809601
public function sizeIs(int $size): bool
    {
        // init
        $itemsTempCount = 0;

        foreach ($this->getGenerator() as $key => $value) {
            ++$itemsTempCount;
            if ($itemsTempCount > $size) {
                return false;
            }
        }

        return $itemsTempCount === $size;
    }
736589
public function setSize($size)
    {
        $size = abs((int) $size);
        if ($size < 1 || $size > 10) {
            throw new SizeOutOfBoundsException('Map point size should be between 1 and 10');
        }

        $this->size = $size;

        return $this;
    }
934746
private function calculateSizeOfRemainingLengthField(int $size): int
    {
        $blockSize = $iterations = 0;
        while ($size >= $blockSize) {
            $iterations++;
            $blockSize = 128 ** $iterations;
        }

        $this->sizeOfRemainingLengthField = $iterations;
        return $iterations;
    }
1175997
public function floatLeft($size = null)
    {
        if (empty($size)) {
            $this->attributes->addAttributeClass('float-left');
        } elseif (in_array($size, ['xs', 'sm', 'md', 'lg', 'xl'])) {
            $this->attributes->addAttributeClass('float-' . $size . '-left');
        }

        return $this;
    }