ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
AMFStream Class Reference
+ Collaboration diagram for AMFStream:

Public Member Functions

 AMFStream (&$bytes)
 readByte ()
 readInt ()
 readLong ()
 readDouble ()
 readUTF ()
 readLongUTF ()
 read ($length)
 peekByte ()
 peekInt ()
 peekLong ()
 peekDouble ()
 peekUTF ()
 peekLongUTF ()

Data Fields

 $bytes
 $pos

Detailed Description

Definition at line 248 of file module.audio-video.flv.php.

Member Function Documentation

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().

{
$val = $this->readByte();
$this->pos = $pos;
return $val;
}

+ 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().

{
$val = $this->readDouble();
$this->pos = $pos;
return $val;
}

+ Here is the call graph for this function:

AMFStream::peekInt ( )

Definition at line 296 of file module.audio-video.flv.php.

References $pos, and readInt().

{
$val = $this->readInt();
$this->pos = $pos;
return $val;
}

+ Here is the call graph for this function:

AMFStream::peekLong ( )

Definition at line 303 of file module.audio-video.flv.php.

References $pos, and readLong().

{
$val = $this->readLong();
$this->pos = $pos;
return $val;
}

+ 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().

{
$val = $this->readLongUTF();
$this->pos = $pos;
return $val;
}

+ Here is the call graph for this function:

AMFStream::peekUTF ( )

Definition at line 317 of file module.audio-video.flv.php.

References $pos, and readUTF().

{
$val = $this->readUTF();
$this->pos = $pos;
return $val;
}

+ Here is the call graph for this function:

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().

{
return ($this->readByte() << 8) + $this->readByte();
}

+ 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().

{
$length = $this->readLong();
return $this->read($length);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

AMFStream::readUTF ( )

Definition at line 273 of file module.audio-video.flv.php.

References read(), and readInt().

Referenced by peekUTF().

{
$length = $this->readInt();
return $this->read($length);
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Field Documentation

AMFStream::$bytes

Definition at line 249 of file module.audio-video.flv.php.

Referenced by AMFStream().

AMFStream::$pos

The documentation for this class was generated from the following file: