Amfphp_Core_Amf_Deserializer::readAmf3ByteArray PHP Method

readAmf3ByteArray() protected method

read Amf 3 byte array
protected readAmf3ByteArray ( ) : Amfphp_Core_Amf_Types_ByteArray
return Amfphp_Core_Amf_Types_ByteArray
    protected function readAmf3ByteArray()
    {
        $handle = $this->readAmf3Int();
        $inline = ($handle & 1) != 0;
        $handle = $handle >> 1;
        if ($inline) {
            $ba = new Amfphp_Core_Amf_Types_ByteArray($this->readBuffer($handle));
            $this->storedObjects[] =& $ba;
        } else {
            $ba = $this->storedObjects[$handle];
        }
        return $ba;
    }

Usage Example

コード例 #1
0
 /**
  * read byte array
  * @return Amfphp_Core_Amf_Types_ByteArray
  */
 public function readAmf3ByteArray()
 {
     return parent::readAmf3ByteArray();
 }