PHP Interface Swift_OutputByteStream, Halite

Classes implementing this interface may use a subsystem which requires less memory than working with large strings of data.
Author: Chris Corbyn
显示文件 Open project: HaliteChallenge/Halite Interface Usage Examples

Public Methods

Method Description
read ( integer $length ) : string | boolean Reads $length bytes from the stream into a string and moves the pointer through the stream by $length.
setReadPointer ( integer $byteOffset ) : boolean Move the internal read pointer to $byteOffset in the stream.

Method Details

read() public method

If less bytes exist than are requested the remaining bytes are given instead. If no bytes are remaining at all, boolean false is returned.
public read ( integer $length ) : string | boolean
$length integer
return string | boolean

setReadPointer() public method

Move the internal read pointer to $byteOffset in the stream.
public setReadPointer ( integer $byteOffset ) : boolean
$byteOffset integer
return boolean