Amf/Parse/OutputStream.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Amf
- Subpackage
- Parse
- Version
- $Id: OutputStream.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Amf_Parse_OutputStream
OutputStream extends BinaryStream as eventually BinaryStream could be placed outside of Zend_Amf in order to allow other packages to use the class.
- Parent(s)
- \Zend_Amf_Util_BinaryStream
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Uses
- \global\Zend_Amf_Util_BinaryStream
Properties


bool $_mbStringFunctionsOverloaded
str* functions overloaded using mbstring.func_overload?
- Type
- bool
- Inherited_from
- \Zend_Amf_Util_BinaryStream::$$_mbStringFunctionsOverloaded
Methods


__construct() : void
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.


readByte() : int
Type | Description |
---|---|
int | Value is in the range of -128 to 127. |
Exception | Description |
---|---|
\Zend_Amf_Exception |


readBytes(int $length) : string
Read the number of bytes in a row for the length supplied.
Inherited from: \Zend_Amf_Util_BinaryStream::readBytes()Name | Type | Description |
---|---|---|
$length | int |
Type | Description |
---|---|
string |
Exception | Description |
---|---|
\Zend_Amf_Exception | for buffer underrun |


readDouble() : double
Reads an IEEE 754 double-precision floating point number from the data stream.
Inherited from: \Zend_Amf_Util_BinaryStream::readDouble()Type | Description |
---|---|
double | Floating point number |


readInt() : int
Reads a signed 32-bit integer from the data stream.
Inherited from: \Zend_Amf_Util_BinaryStream::readInt()Type | Description |
---|---|
int | Value is in the range of -2147483648 to 2147483647 |


readUnsignedShort() : double
Read a 16 bit unsigned short.
Inherited from: \Zend_Amf_Util_BinaryStream::readUnsignedShort()Type | Description |
---|---|
double |


readUtf() : string
Reads a UTF-8 string from the data stream
Inherited from: \Zend_Amf_Util_BinaryStream::readUtf()Type | Description |
---|---|
string | A UTF-8 string produced by the byte representation of characters |


writeByte(string $stream) : \Zend_Amf_Util_BinaryStream
Writes the passed string into a signed byte on the stream.
Inherited from: \Zend_Amf_Util_BinaryStream::writeByte()Name | Type | Description |
---|---|---|
$stream | string |
Type | Description |
---|---|
\Zend_Amf_Util_BinaryStream |


writeBytes(string $bytes) : \Zend_Amf_Util_BinaryStream
Write any length of bytes to the stream
Inherited from: \Zend_Amf_Util_BinaryStream::writeBytes()Usually a string.
Name | Type | Description |
---|---|---|
$bytes | string |
Type | Description |
---|---|
\Zend_Amf_Util_BinaryStream |


writeDouble(string | double $stream) : \Zend_Amf_Util_BinaryStream
Writes an IEEE 754 double-precision floating point number from the data stream.
Inherited from: \Zend_Amf_Util_BinaryStream::writeDouble()Name | Type | Description |
---|---|---|
$stream | string | double |
Type | Description |
---|---|
\Zend_Amf_Util_BinaryStream |


writeInt(int $stream) : \Zend_Amf_Util_BinaryStream
Write an the integer to the output stream as a 32 bit signed integer
Inherited from: \Zend_Amf_Util_BinaryStream::writeInt()Name | Type | Description |
---|---|---|
$stream | int |
Type | Description |
---|---|
\Zend_Amf_Util_BinaryStream |


writeLong(int | string $stream) : \Zend_Amf_Util_BinaryStream
Write long numeric value to output stream
Inherited from: \Zend_Amf_Util_BinaryStream::writeLong()Name | Type | Description |
---|---|---|
$stream | int | string |
Type | Description |
---|---|
\Zend_Amf_Util_BinaryStream |


writeLongUtf(string $stream) : \Zend_Amf_Util_BinaryStream
Write a long UTF string to the buffer
Inherited from: \Zend_Amf_Util_BinaryStream::writeLongUtf()Name | Type | Description |
---|---|---|
$stream | string |
Type | Description |
---|---|
\Zend_Amf_Util_BinaryStream |


writeUtf(string $stream) : \Zend_Amf_Util_BinaryStream
Wite a UTF-8 string to the outputstream
Inherited from: \Zend_Amf_Util_BinaryStream::writeUtf()Name | Type | Description |
---|---|---|
$stream | string |
Type | Description |
---|---|
\Zend_Amf_Util_BinaryStream |