Amfphp_Core_Amf_Deserializer::readInt PHP 메소드

readInt() 보호된 메소드

readInt grabs the next 2 bytes and returns the next two bytes, shifted and combined to produce the resulting integer
protected readInt ( ) : integer
리턴 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

 /**
  * read int
  * @return int
  */
 public function readInt()
 {
     return parent::readInt();
 }