\Zend_Amf_Parse_OutputStream
Iterate at a binary level through the AMF response
OutputStream extends BinaryStream as eventually BinaryStream could be placed
outside of Zend_Amf in order to allow other packages to use the class.
- Copyright: Copyright (c) 2005-2011 Zend Technologies USA Inc. (http://www.zend.com)
- License: http://framework.zend.com/license/new-bsd New BSD License
Synopsis
class Zend_Amf_Parse_OutputStream
extends Zend_Amf_Util_BinaryStream
{
- // Inherited members from Zend_Amf_Util_BinaryStream
- protected $_stream;
- protected $_streamLength;
- protected bool $_bigEndian;
- protected $_needle;
- // methods
- public void __construct()
- // Inherited methods from Zend_Amf_Util_BinaryStream
- public void __construct()
- public string getStream()
- public string readBytes()
- public Zend_Amf_Util_BinaryStream writeBytes()
- public int readByte()
- public Zend_Amf_Util_BinaryStream writeByte()
- public int readInt()
- public Zend_Amf_Util_BinaryStream writeInt()
- public string readUtf()
- public Zend_Amf_Util_BinaryStream writeUtf()
- public string readLongUtf()
- public Zend_Amf_Util_BinaryStream writeLongUtf()
- public double readLong()
- public Zend_Amf_Util_BinaryStream writeLong()
- public double readUnsignedShort()
- public double readDouble()
- public Zend_Amf_Util_BinaryStream writeDouble()
Hierarchy
Extends
Tasks
Line | Task |
---|---|
94+ | Should check that there are enough bytes left in the stream we are about to read. |
244+ | This could use the unpack() w/ S,n, or v |
Members
protected
- $_bigEndian — bool
- $_needle — int
- $_stream — string
- $_streamLength — int
Methods
Inherited from Zend_Amf_Util_BinaryStream
public
- getStream() — Returns the current stream
- readByte() — Reads a signed byte
- readBytes() — Read the number of bytes in a row for the length supplied.
- readDouble() — Reads an IEEE 754 double-precision floating point number from the data stream.
- readInt() — Reads a signed 32-bit integer from the data stream.
- readLong() — Read a long numeric value
- readLongUtf() — Read a long UTF string
- readUnsignedShort() — Read a 16 bit unsigned short.
- readUtf() — Reads a UTF-8 string from the data stream
- writeByte() — Writes the passed string into a signed byte on the stream.
- writeBytes() — Write any length of bytes to the stream
- writeDouble() — Writes an IEEE 754 double-precision floating point number from the data stream.
- writeInt() — Write an the integer to the output stream as a 32 bit signed integer
- writeLong() — Write long numeric value to output stream
- writeLongUtf() — Write a long UTF string to the buffer
- writeUtf() — Wite a UTF-8 string to the outputstream