public function readInet($isCollectionElement = false) { if ($isCollectionElement) { $data = $this->read($this->readShort()); } else { $data = $this->data; } return inet_ntop($data); }