wppaste
WordPress

AMFReader

Source
wp-includes/ID3/module.audio-video.flv.php:559

Compatibility

WordPress
core
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Properties · 1

$streamAMFStreampublic

Methods · 12

Source code

class AMFReader{	/**	* @var AMFStream	*/	public $stream; 	/**	 * @param AMFStream $stream	 */	public function __construct(AMFStream $stream) {		$this->stream = $stream;	} 	/**	 * @return mixed	 */	public function readData() {		$value = null; 		$type = $this->stream->readByte();		switch ($type) { 			// Double			case 0:				$value = $this->readDouble();			break; 			// Boolean			case 1:				$value = $this->readBoolean();				break; 			// String			case 2:				$value = $this->readString();				break; 			// Object			case 3:				$value = $this->readObject();				break; 			// null			case 6:				return null; 			// Mixed array			case 8:				$value = $this->readMixedArray();				break; 			// Array			case 10:				$value = $this->readArray();				break; 			// Date			case 11:				$value = $this->readDate();				break; 			// Long string			case 13:				$value = $this->readLongString();				break; 			// XML (handled as string)			case 15:				$value = $this->readXML();				break; 			// Typed object (handled as object)			case 16:				$value = $this->readTypedObject();				break; 			// Long string			default:				$value = '(unknown or unsupported data type)';

Changelog

Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.9.7 tag, from src/wp-includes/ID3/module.audio-video.flv.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.