Grabs the item size

@param   bool    $raw  Whether or not to return raw size (vs formatted size)
@return  string|int
965770
public function getSize($raw = false)
	{
		if (!isset($this->size))
		{
			$this->size = $this->hasAdapterOrFail()->adapter->getSize($this->getPath());
		}

		return ($raw) ? $this->size : \Hubzero\Utility\Number::formatBytes($this->size);
	}
614386
public function getSize() : ?string 
    {
        if ( ! $this->hasSize()) {
            $this->setSize($this->getDefaultSize());
        }
        return $this->size;
    }
944693
public function size()
    {
        $size = 0;
        if ( ! is_null($this->time)) {
            $size += 1 + Protobuf::size_varint($this->time);
        }
        if ( ! is_null($this->contents)) {
            foreach ($this->contents as $v) {
                $l = $v->size();
                $size += 1 + Protobuf::size_varint($l) + $l;
            }
        }

        return $size;
    }
118020
public function getSize($path)
    {
        $meta = $this->getMetadata($path);
        return ($meta && isset($meta['size'])) ? $meta : false;
    }
225015
protected function parseRaw($raw) {
		$info = preg_split("/\s+/", $raw, 9);
		$stat = array();

		$stat['name'] = join(" ", array_slice($info, 3, 9));
		$stat['read'] = true;
		if ($info[2] == '<DIR>')
		{
			$stat['size'] = 0;
			$stat['mime'] = 'directory';
		}
		else
		{
			$stat['size'] = $info[2];
			$stat['mime'] = $this->mimetype($stat['name']);
		}

		return $stat;
	}
744022
protected function raw(Raw $raw): string
	{
		$parameters = $raw->getParameters();

		if(!empty($parameters))
		{
			$this->params = array_merge($this->params, $parameters);
		}

		return $raw->getSql();
	}
149476
public function getHash(
        bool $raw = false,
        int $outputSize = \SODIUM_CRYPTO_GENERICHASH_BYTES,
        string $personalization = ''
    ): string {
        if ($raw) {
            return Util::raw_hash(
                $personalization . $this->data,
                $outputSize
            );
        }
        return Util::hash(
            $personalization . $this->data,
            $outputSize
        );
    }
111331
public function getMaxSize( $default = null ) {

		$prop = $this->properties[ self::PROP_MAX_SIZE ];

		if( isset( $prop ) && strlen( $prop ) > 0 ) {

			return $prop;
		}

		return $default;
	}
609239
public function getData($raw = false)
    {
        if (true === $raw) {
            return $this->data;
        }

        $this->prepare();

        return $this->dataPrepared;
    }
454207
public function unserialize($raw) {
        $returnData = array();
        $offset     = 0;

        while ($offset < strlen($raw)) {
            $num     = ord($raw[$offset]);
            $offset += 1;
            $varname = substr($raw, $offset, $num);
            $offset += $num;
            $data    = unserialize(substr($raw, $offset));

            $returnData[$varname] = $data;
            $offset += strlen(serialize($data));
        }

        return $returnData;
    }
1347243
public function getSize()
    {
        $size = 0;
        $this->loadItems();
        foreach ($this->items as $item) {
            $size += $item->getSize();
        }

        return $size;
    }
991890
public function getSize()
    {
        if (! $this->size && $this->isAttached() === true) {
            $stats = fstat($this->stream);
            $this->size = isset($stats['size']) ? $stats['size'] : null;
        }

        return $this->size;
    }
1085445
public function getSize($path)
    {
        $stat = $this->getMetadata($path);

        return isset($stat['filesize']) ? ['size' => $stat['filesize']] : false;
    }
275229
public function size($iSize = null)
    {
        if (null === $iSize) {
            return $this->getSize();
        }

        return $this->setSize($iSize);
    }
1177564
public function getGetParameter($name, $raw = false)
    {
        $value = null;
        $get = $this->getGet();

        if (isset($get[$name])) {
            $value = $get[$name];
        }

        if ($value !== null && !$raw) {
            $value = $this->escapeSpecialChars($value);
        }

        return $value;
    }
123252
public function get($rawId)
    {
        $row = $this->getCart()->get($rawId);

        return is_null($row) ? null : new Item($row);
    }
1102312
public function getSize()
    {
        $stats = fstat($this->context);

        if (isset($stats[ 'size' ])) {
            return (int)$stats[ 'size' ];
        }

        return null;
    }