/** * Return the length of the message data. * * @return integer */ public function getBytes() { if (!isset($this->_bytes)) { $this->_bytes = $this->_stream->length(); } return $this->_bytes; }