XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
Swift_OutputByteStream Interface Reference
Inheritance diagram for Swift_OutputByteStream:
Inheritance graph

Public Member Functions

 read ($length)
 
 setReadPointer ($byteOffset)
 

Detailed Description

Definition at line 19 of file OutputByteStream.php.

Member Function Documentation

Swift_OutputByteStream::read (   $length)

Reads $length bytes from the stream into a string and moves the pointer through the stream by $length. If less bytes exist than are requested the remaining bytes are given instead. If no bytes are remaining at all, boolean false is returned.

Parameters
int$length
Returns
string
Exceptions
Swift_IoException

Implemented in Swift_Transport_StreamBuffer, Swift_ByteStream_ArrayByteStream, and Swift_ByteStream_FileByteStream.

Referenced by Swift_Mime_SimpleMimeEntity\_readStream(), Swift_Mime_ContentEncoder_Base64ContentEncoder\encodeByteStream(), Swift_Mime_ContentEncoder_PlainContentEncoder\encodeByteStream(), Swift_CharacterStream_ArrayCharacterStream\importByteStream(), importByteStream(), Swift_KeyCache_ArrayKeyCache\importFromByteStream(), and Swift_KeyCache_DiskKeyCache\importFromByteStream().

Here is the caller graph for this function:

Swift_OutputByteStream::setReadPointer (   $byteOffset)

Move the internal read pointer to $byteOffset in the stream.

Parameters
int$byteOffset
Returns
boolean
Exceptions
Swift_IoException

Implemented in Swift_Transport_StreamBuffer, Swift_ByteStream_ArrayByteStream, and Swift_ByteStream_FileByteStream.

Referenced by importByteStream().

Here is the caller graph for this function:


The documentation for this interface was generated from the following file: