protected function readInt() { return ord($this->rawData[$this->currentByte++]) << 8 | ord($this->rawData[$this->currentByte++]); // read the next 2 bytes, shift and add }
/** * read int * @return int */ public function readInt() { return parent::readInt(); }