Amfphp_Core_Amf_Deserializer::readInt PHP Method

readInt() protected method

readInt grabs the next 2 bytes and returns the next two bytes, shifted and combined to produce the resulting integer
protected readInt ( ) : integer
return integer The resulting integer from the next 2 bytes
    protected function readInt()
    {
        return ord($this->rawData[$this->currentByte++]) << 8 | ord($this->rawData[$this->currentByte++]);
        // read the next 2 bytes, shift and add
    }

Usage Example

コード例 #1
0
 /**
  * read int
  * @return int
  */
 public function readInt()
 {
     return parent::readInt();
 }