Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Utility class to walk through a data stream byte by byte with conventional names
bool $_bigEndian = ''
Detailsint $_needle = ''
Detailsstring $_stream = ''
Detailsint $_streamLength = ''
Details__construct(
string $stream
)
:
voidConstructor
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.
DetailsgetStream(
)
:
stringReturns the current stream
DetailsreadByte(
)
:
intReads a signed byte
DetailsreadBytes(
int $length
)
:
stringRead the number of bytes in a row for the length supplied.
DetailsreadDouble(
)
:
doubleReads an IEEE 754 double-precision floating point number from the data stream.
DetailsreadInt(
)
:
intReads a signed 32-bit integer from the data stream.
DetailsreadLong(
)
:
doubleRead a long numeric value
DetailsreadLongUtf(
)
:
stringRead a long UTF string
DetailsreadUnsignedShort(
)
:
doubleRead a 16 bit unsigned short.
DetailsreadUtf(
)
:
stringReads a UTF-8 string from the data stream
DetailswriteByte(
string $stream
)
:
Zend_Amf_Util_BinaryStreamWrites the passed string into a signed byte on the stream.
DetailswriteBytes(
string $bytes
)
:
Zend_Amf_Util_BinaryStreamWrite any length of bytes to the stream
Usually a string.
DetailswriteDouble(
string|double $stream
)
:
Zend_Amf_Util_BinaryStreamWrites an IEEE 754 double-precision floating point number from the data stream.
DetailswriteInt(
int $stream
)
:
Zend_Amf_Util_BinaryStreamWrite an the integer to the output stream as a 32 bit signed integer
DetailswriteLong(
int|string $stream
)
:
Zend_Amf_Util_BinaryStreamWrite long numeric value to output stream
DetailswriteLongUtf(
string $stream
)
:
Zend_Amf_Util_BinaryStreamWrite a long UTF string to the buffer
DetailswriteUtf(
string $stream
)
:
Zend_Amf_Util_BinaryStreamWite a UTF-8 string to the outputstream
Details