Lines Matching defs:maxLen
52 * @param int $maxLen Maximum number of bytes to read. Pass -1
56 public static function copyToString(StreamInterface $stream, $maxLen = -1)
60 if ($maxLen === -1) {
72 while (!$stream->eof() && $len < $maxLen) {
73 $buf = $stream->read($maxLen - $len);
90 * @param int $maxLen Maximum number of bytes to read. Pass -1
96 $maxLen = -1
98 if ($maxLen === -1) {
109 $buf = $source->read($maxLen - $bytes);
115 if ($bytes == $maxLen) {