Amfphp_Core_Amf_Deserializer::readLong PHP Method

readLong() protected method

readLong grabs the next 4 bytes shifts and combines them to produce an integer
protected readLong ( ) : integer
return integer The resulting integer from the next 4 bytes
    protected function readLong()
    {
        return ord($this->rawData[$this->currentByte++]) << 24 | ord($this->rawData[$this->currentByte++]) << 16 | ord($this->rawData[$this->currentByte++]) << 8 | ord($this->rawData[$this->currentByte++]);
        // read the next 4 bytes, shift and add
    }

Usage Example

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