code: public function slurp(): string
      {
          $str = "";
          while ($this->ready()) {
              $str .= $this->read($this->count());
          }
          
          return $str;
      }
docs: Retrieve the whole memory string content
  
  @return string