public function getTotalLength()
    {
        if ($this->totalLength === null) {
            $stat = \fstat($this->stream);
            $this->totalLength = $stat['size'];
        }

        return $this->totalLength;
    }
public function getTotalLength()
    {
        if ($this->totalLength === null) {
            $stat = \fstat($this->stream);
            $this->totalLength = $stat['size'];
        }

        return $this->totalLength;
    }
public function getTotalLength ( ) { if ( $ this -> totalLength === null ) { $ stat = \ fstat ( $ this -> stream ) ; $ this -> totalLength = $ stat [ 'size' ] ; } return $ this -> totalLength ; }
Gets the total available length.

@return int
Gets the total available length .