Lines Matching refs:memory
58 var $memory; variable in File_Archive_Reader_Memory
71 * @param string $memory is the content of the file.
79 function File_Archive_Reader_Memory(&$memory, $filename, argument
82 $this->memory = &$memory;
85 $this->stat[7] = $this->stat['size'] = strlen($this->memory);
124 if ($this->offset == strlen($this->memory)) {
128 $actualLength = strlen($this->memory) - $this->offset;
130 $actualLength = min($length, strlen($this->memory) - $this->offset);
132 $result = substr($this->memory, $this->offset, $actualLength);
143 $length = strlen($this->memory) - $this->offset;
145 $length = min($length, strlen($this->memory) - $this->offset);
206 $data = substr($this->memory, 0, $this->offset + $seek);
207 $this->memory = substr($this->memory, $this->offset + $seek);
212 $data .= substr($this->memory, 0, $length);
214 $this->memory = substr($this->memory, $length);
218 $this->memory = $data . $this->memory;
220 $this->memory = $data;
223 return new File_Archive_Writer_Memory($this->memory, strlen($this->memory));