Lines Matching refs:this

86         return $this->_currentFilename;
94 $this->_currentFilename = null;
95 $this->_currentStat = null;
96 $this->_nbBytesLeft = 0;
97 $this->_header = 0;
98 $this->_footer = false;
99 $this->_alreadyRead = false;
108 return $this->_currentStat;
121 $this->source->skip(
122 $this->_nbBytesLeft + ($this->_footer ? 1 : 0)
125 $filename = $this->source->getDataFilename();
127 if (!$this->_alreadyRead) {
128 $header = $this->source->getData(8);
132 $this->_alreadyRead = true;
136 $name = $this->source->getData(16);
137 $mtime = $this->source->getData(12);
138 $uid = $this->source->getData(6);
139 $gid = $this->source->getData(6);
140 $mode = $this->source->getData(8);
141 $size = $this->source->getData(10);
142 $delim = $this->source->getData(2);
153 $this->_footer = ($size % 2 == 1);
157 $this->_header = 60 + $matches[1];
158 $name = $this->source->getData($matches[1]);
162 $this->_header = 60;
166 $this->_nbBytesLeft = $size;
172 $this->_currentFilename = $this->getStandardURL($name);
173 $this->_currentStat = array(
195 $length = $this->_nbBytesLeft;
197 $length = min($length, $this->_nbBytesLeft);
202 $this->_nbBytesLeft -= $length;
203 $data = $this->source->getData($length);
220 $length = $this->_nbBytesLeft;
222 $length = min($length, $this->_nbBytesLeft);
227 $this->_nbBytesLeft -= $length;
228 $skipped = $this->source->skip($length);
245 $length = $this->_currentStat[7] - $this->_nbBytesLeft;
247 $length = min($length, $this->_currentStat[7] - $this->_nbBytesLeft);
252 $rewinded = $this->source->rewind($length);
254 $this->_nbBytesLeft += $rewinded;
265 return $this->_currentStat[7] - $this->_nbBytesLeft;
278 if ($this->_currentFilename !== null && $pred->isTrue($this)) {
279 $seek = $this->_header + $this->_currentStat[7] + ($this->_footer ? 1 : 0);
283 while (($error = $this->next()) === true) {
284 $size = $this->_header + $this->_currentStat[7] + ($this->_footer ? 1 : 0);
285 if ($pred->isTrue($this)) {
316 $this->source->makeWriterRemoveBlocks($blocks, -$seek)
318 $this->close();
327 if ($this->_currentStat === null) {
331 $blockPos = $this->_currentStat[7] - $this->_nbBytesLeft + $seek;
333 $this->rewind();
336 $data = $this->getData($blockPos);
339 $data .= $this->getData($length);
341 $this->skip($length);
346 $data .= $this->getData();
349 $filename = $this->_currentFilename;
350 $stat = $this->_currentStat;
352 $writer = $this->makeWriterRemove();
370 while (($error = $this->next()) === true) { }
372 $this->close();
376 $innerWriter = $this->source->makeWriterRemoveBlocks(array());
381 unset($this->source);
382 $this->close();