Zend Framework
1.12
|
Public Member Functions | |
__construct ($stream) | |
Constructor. | |
getStream () | |
Returns the current stream. | |
readBytes ($length) | |
Read the number of bytes in a row for the length supplied. | |
writeBytes ($bytes) | |
Write any length of bytes to the stream. | |
readByte () | |
Reads a signed byte. | |
writeByte ($stream) | |
Writes the passed string into a signed byte on the stream. | |
readInt () | |
Reads a signed 32-bit integer from the data stream. | |
writeInt ($stream) | |
Write an the integer to the output stream as a 32 bit signed integer. | |
readUtf () | |
Reads a UTF-8 string from the data stream. | |
writeUtf ($stream) | |
Wite a UTF-8 string to the outputstream. | |
readLongUtf () | |
Read a long UTF string. | |
writeLongUtf ($stream) | |
Write a long UTF string to the buffer. | |
readLong () | |
Read a long numeric value. | |
writeLong ($stream) | |
Write long numeric value to output stream. | |
readUnsignedShort () | |
Read a 16 bit unsigned short. | |
readDouble () | |
Reads an IEEE 754 double-precision floating point number from the data stream. | |
writeDouble ($stream) | |
Writes an IEEE 754 double-precision floating point number from the data stream. | |
Protected Attributes | |
$_stream | |
$_streamLength | |
$_bigEndian | |
$_needle | |
$_mbStringFunctionsOverloaded | |
__construct | ( | $stream | ) |
Constructor.
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 | $stream | use '' if creating a new stream or pass a string if reading. |
getStream | ( | ) |
Returns the current stream.
readByte | ( | ) |
readBytes | ( | $length | ) |
Read the number of bytes in a row for the length supplied.
int | $length |
Zend_Amf_Exception | for buffer underrun |
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 | ( | ) |
readUtf | ( | ) |
Reads a UTF-8 string from the data stream.
writeByte | ( | $stream | ) |
Writes the passed string into a signed byte on the stream.
string | $stream |
writeBytes | ( | $bytes | ) |
Write any length of bytes to the stream.
Usually a string.
string | $bytes |
writeDouble | ( | $stream | ) |
Writes an IEEE 754 double-precision floating point number from the data stream.
string | double | $stream |
writeInt | ( | $stream | ) |
Write an the integer to the output stream as a 32 bit signed integer.
int | $stream |
writeLong | ( | $stream | ) |
Write long numeric value to output stream.
int | string | $stream |
writeLongUtf | ( | $stream | ) |
writeUtf | ( | $stream | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |