public function size() : int
    {
        if ($this->bufSize == null) {
            $this->bufSize = strlen($this->buf);
        }
        return $this->bufSize;
    }
public function size() : int
    {
        if ($this->bufSize == null) {
            $this->bufSize = strlen($this->buf);
        }
        return $this->bufSize;
    }
public function size ( ) : int { if ( $ this -> bufSize == null ) { $ this -> bufSize = strlen ( $ this -> buf ) ; } return $ this -> bufSize ; }
Returns the current size of the buffer.

@return int the current size of the buffer
Returns the current size of the buffer .