Lines Matching refs:start
157 $start = $range[0];
159 if ($start >= $nodeSize)
162 …if ($end < $start) throw new Exception\RequestedRangeNotSatisfiable('The end offset (' . $range[1]…
167 $start = $nodeSize - $range[1];
170 if ($start < 0) $start = 0;
177 if (!stream_get_meta_data($body)['seekable'] || fseek($body, $start, SEEK_SET) === -1) {
179 for ($consumed = 0; $start - $consumed > 0;){
180 … throw new Exception\RequestedRangeNotSatisfiable('The start offset (' . $start . ') exceeded the …
181 $consumed += strlen(fread($body, min($start - $consumed, $consumeBlock)));
185 $response->setHeader('Content-Length', $end - $start + 1);
186 $response->setHeader('Content-Range', 'bytes ' . $start . '-' . $end . '/' . $nodeSize);