InputStream is used to iterate at a binary level through the AMF request.
InputStream extends BinaryStream as eventually BinaryStream could be placed outside of Zend_Amf in order to allow other packages to use the class.
package | Zend_Amf |
---|---|
subpackage | Parse |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Amf_Util_BinaryStream |
__construct(string $stream) : void
Create a reference to a byte stream that is going to be parsed or created by the methods in the class. Detect if the class should use big or little Endian encoding.
string
use '' if creating a new stream or pass a string if reading.
getStream() : string
string
readByte() : integer
\Zend_Amf_Exception |
---|
integer
Value is in the range of -128 to 127.readBytes(integer $length) : string
todo | Should check that there are enough bytes left in the stream we are about to read. |
---|
integer
\Zend_Amf_Exception |
for buffer underrun |
---|
string
readDouble() : double
double
Floating point numberreadInt() : integer
integer
Value is in the range of -2147483648 to 2147483647readLong() : double
double
readLongUtf() : string
string
readUnsignedShort() : double
todo | This could use the unpack() w/ S,n, or v |
---|
double
readUtf() : string
string
A UTF-8 string produced by the byte representation of characterswriteByte(string $stream) : \Zend_Amf_Util_BinaryStream
string
\Zend_Amf_Util_BinaryStream
writeBytes(string $bytes) : \Zend_Amf_Util_BinaryStream
Usually a string.
string
\Zend_Amf_Util_BinaryStream
writeDouble(string|double $stream) : \Zend_Amf_Util_BinaryStream
string
double
\Zend_Amf_Util_BinaryStream
writeInt(integer $stream) : \Zend_Amf_Util_BinaryStream
integer
\Zend_Amf_Util_BinaryStream
writeLong(integer|string $stream) : \Zend_Amf_Util_BinaryStream
integer
string
\Zend_Amf_Util_BinaryStream
writeLongUtf(string $stream) : \Zend_Amf_Util_BinaryStream
string
\Zend_Amf_Util_BinaryStream
writeUtf(string $stream) : \Zend_Amf_Util_BinaryStream
string
\Zend_Amf_Util_BinaryStream
$_bigEndian : boolean
$_mbStringFunctionsOverloaded : boolean
$_needle : integer
$_stream : string
$_streamLength : integer