Пример #1
0
 public function decode($data)
 {
     $stream = new InputStream(substr($data, 1));
     $deserializer = new Deserializer($stream);
     return $deserializer->readTypeMarker();
 }
Пример #2
0
 /**
  * AMF3 data type encountered load AMF3 Deserializer to handle
  * type markers.
  *
  * @return string
  */
 public function readAmf3TypeMarker()
 {
     $deserializer = new Amf3Deserializer($this->_stream);
     $this->_objectEncoding = Constants::AMF3_OBJECT_ENCODING;
     return $deserializer->readTypeMarker();
 }