PHP Интерфейс Swift_OutputByteStream, Halite

Classes implementing this interface may use a subsystem which requires less memory than working with large strings of data.
Автор: Chris Corbyn
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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.

Описание методов

read() публичный Метод

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
Результат string | boolean

setReadPointer() публичный Метод

Move the internal read pointer to $byteOffset in the stream.
public setReadPointer ( integer $byteOffset ) : boolean
$byteOffset integer
Результат boolean