[ Index ] |
PHP Cross Reference of moodle-2.8 |
[Source view] [Print] [Project Stats]
Zend Framework LICENSE
Copyright: | Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
License: | http://framework.zend.com/license/new-bsd New BSD License |
Version: | $Id$ |
File Size: | 285 lines (7 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
Zend_Amf_Util_BinaryStream:: (17 methods):
__construct()
getStream()
readBytes()
writeBytes()
readByte()
writeByte()
readInt()
writeInt()
readUtf()
writeUtf()
readLongUtf()
writeLongUtf()
readLong()
writeLong()
readUnsignedShort()
readDouble()
writeDouble()
Class: Zend_Amf_Util_BinaryStream - X-Ref
Utility class to walk through a data stream byte by byte with conventional names__construct($stream) X-Ref |
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. param: string $stream use '' if creating a new stream or pass a string if reading. return: void |
getStream() X-Ref |
Returns the current stream return: string |
readBytes($length) X-Ref |
Read the number of bytes in a row for the length supplied. param: int $length return: string |
writeBytes($bytes) X-Ref |
Write any length of bytes to the stream Usually a string. param: string $bytes return: Zend_Amf_Util_BinaryStream |
readByte() X-Ref |
Reads a signed byte return: int Value is in the range of -128 to 127. |
writeByte($stream) X-Ref |
Writes the passed string into a signed byte on the stream. param: string $stream return: Zend_Amf_Util_BinaryStream |
readInt() X-Ref |
Reads a signed 32-bit integer from the data stream. return: int Value is in the range of -2147483648 to 2147483647 |
writeInt($stream) X-Ref |
Write an the integer to the output stream as a 32 bit signed integer param: int $stream return: Zend_Amf_Util_BinaryStream |
readUtf() X-Ref |
Reads a UTF-8 string from the data stream return: string A UTF-8 string produced by the byte representation of characters |
writeUtf($stream) X-Ref |
Wite a UTF-8 string to the outputstream param: string $stream return: Zend_Amf_Util_BinaryStream |
readLongUtf() X-Ref |
Read a long UTF string return: string |
writeLongUtf($stream) X-Ref |
Write a long UTF string to the buffer param: string $stream return: Zend_Amf_Util_BinaryStream |
readLong() X-Ref |
Read a long numeric value return: double |
writeLong($stream) X-Ref |
Write long numeric value to output stream param: int|string $stream return: Zend_Amf_Util_BinaryStream |
readUnsignedShort() X-Ref |
Read a 16 bit unsigned short. return: double |
readDouble() X-Ref |
Reads an IEEE 754 double-precision floating point number from the data stream. return: double Floating point number |
writeDouble($stream) X-Ref |
Writes an IEEE 754 double-precision floating point number from the data stream. param: string|double $stream return: Zend_Amf_Util_BinaryStream |
Generated: Fri Nov 28 20:29:05 2014 | Cross-referenced by PHPXref 0.7.1 |