Lines Matching defs:chunk_size
89 protected $chunk_size;
95 * @param int $chunk_size maximum block size read from file
97 public function setChunkSize($chunk_size)
99 if (!is_numeric($chunk_size)) $chunk_size = 0;
101 $this->chunk_size = max($chunk_size, 0);
106 * If file larger than $chunk_size, only chunk is read that could contain $rev.
130 if (filesize($file) < $this->chunk_size || $this->chunk_size == 0) {
147 while ($tail - $head > $this->chunk_size) {
187 $chunk_size = max($tail - $head, 0); // found chunk size
190 while ($got < $chunk_size && !feof($fp)) {
191 $tmp = @fread($fp, max(min($this->chunk_size, $chunk_size - $got), 0));
240 $tail = $head + (int)($this->chunk_size * (2 / 3));
245 $head = max($tail - $this->chunk_size, 0);
250 $head = max($head - $this->chunk_size, 0);