Public Member Functions | |
| AMFStream (&$bytes) | |
| readByte () | |
| readInt () | |
| readLong () | |
| readDouble () | |
| readUTF () | |
| readLongUTF () | |
| read ($length) | |
| peekByte () | |
| peekInt () | |
| peekLong () | |
| peekDouble () | |
| peekUTF () | |
| peekLongUTF () | |
Data Fields | |
| $bytes | |
| $pos | |
Definition at line 248 of file module.audio-video.flv.php.
| AMFStream::AMFStream | ( | &$ | bytes | ) |
Definition at line 252 of file module.audio-video.flv.php.
References $bytes.
{
$this->bytes =& $bytes;
$this->pos = 0;
}
| AMFStream::peekByte | ( | ) |
Definition at line 289 of file module.audio-video.flv.php.
References $pos, and readByte().
Here is the call graph for this function:| AMFStream::peekDouble | ( | ) |
Definition at line 310 of file module.audio-video.flv.php.
References $pos, and readDouble().
{
$pos = $this->pos;
$val = $this->readDouble();
$this->pos = $pos;
return $val;
}
Here is the call graph for this function:| AMFStream::peekInt | ( | ) |
| AMFStream::peekLong | ( | ) |
Definition at line 303 of file module.audio-video.flv.php.
References $pos, and readLong().
Here is the call graph for this function:| AMFStream::peekLongUTF | ( | ) |
Definition at line 324 of file module.audio-video.flv.php.
References $pos, and readLongUTF().
{
$pos = $this->pos;
$val = $this->readLongUTF();
$this->pos = $pos;
return $val;
}
Here is the call graph for this function:| AMFStream::peekUTF | ( | ) |
| AMFStream::read | ( | $ | length | ) |
Definition at line 283 of file module.audio-video.flv.php.
Referenced by readDouble(), readLongUTF(), and readUTF().
{
$val = substr($this->bytes, $this->pos, $length);
$this->pos += $length;
return $val;
}
Here is the caller graph for this function:| AMFStream::readByte | ( | ) |
Definition at line 257 of file module.audio-video.flv.php.
References getid3_lib::BigEndian2Int().
Referenced by peekByte(), readInt(), and readLong().
{
return getid3_lib::BigEndian2Int(substr($this->bytes, $this->pos++, 1));
}
Here is the call graph for this function:
Here is the caller graph for this function:| AMFStream::readDouble | ( | ) |
Definition at line 269 of file module.audio-video.flv.php.
References getid3_lib::BigEndian2Float(), and read().
Referenced by peekDouble().
{
return getid3_lib::BigEndian2Float($this->read(8));
}
Here is the call graph for this function:
Here is the caller graph for this function:| AMFStream::readInt | ( | ) |
Definition at line 261 of file module.audio-video.flv.php.
References readByte().
Referenced by peekInt(), and readUTF().
Here is the call graph for this function:
Here is the caller graph for this function:| AMFStream::readLong | ( | ) |
Definition at line 265 of file module.audio-video.flv.php.
References readByte().
Referenced by peekLong(), and readLongUTF().
{
return ($this->readByte() << 24) + ($this->readByte() << 16) + ($this->readByte() << 8) + $this->readByte();
}
Here is the call graph for this function:
Here is the caller graph for this function:| AMFStream::readLongUTF | ( | ) |
Definition at line 278 of file module.audio-video.flv.php.
References read(), and readLong().
Referenced by peekLongUTF().
Here is the call graph for this function:
Here is the caller graph for this function:| AMFStream::readUTF | ( | ) |
| AMFStream::$bytes |
Definition at line 249 of file module.audio-video.flv.php.
Referenced by AMFStream().
| AMFStream::$pos |
Definition at line 250 of file module.audio-video.flv.php.
Referenced by peekByte(), peekDouble(), peekInt(), peekLong(), peekLongUTF(), and peekUTF().
1.7.1