Lines Matching refs:read
49 * bytes have been read.
51 * @param StreamInterface $stream Stream to read
52 * @param int $maxLen Maximum number of bytes to read. Pass -1
53 * to read the entire stream.
62 $buf = $stream->read(1048576);
73 $buf = $stream->read($maxLen - $len);
86 * of bytes have been read.
88 * @param StreamInterface $source Stream to read from
90 * @param int $maxLen Maximum number of bytes to read. Pass -1
91 * to read the entire stream.
100 if (!$dest->write($source->read(1048576))) {
109 $buf = $source->read($maxLen - $bytes);
144 hash_update($ctx, $stream->read(1048576));
156 * @param StreamInterface $stream Stream to read from
169 if (false === ($byte = $stream->read(1))) {