Lines Matching refs:data
7 * Provides a read only stream that pumps data from a PHP callable.
10 * data requested to read to the callable. The callable can choose to ignore
11 * this value and return fewer or more bytes than requested. Any extra data
14 * false when there is no more data to read.
34 * @param callable $source Source of the stream data. The callable MAY
36 * amount of data to return. The callable MUST
114 $data = $this->buffer->read($length);
115 $readLen = strlen($data);
121 $data .= $this->buffer->read($remaining);
122 $this->tellPos += strlen($data) - $readLen;
125 return $data;
151 $data = call_user_func($this->source, $length);
152 if ($data === false || $data === null) {
156 $this->buffer->write($data);
157 $length -= strlen($data);