57 $this->_array = $stack;
58 $this->_arraySize = count($stack);
66 $this->_array = array();
78 public function read($length)
80 if ($this->_offset == $this->_arraySize)
87 $end = $this->_arraySize<$end
104 $to_add = str_split($bytes);
105 foreach ($to_add as $value)
107 $this->_array[] = $value;
109 $this->_arraySize = count($this->_array);
111 foreach ($this->_mirrors as $stream)
113 $stream->write($bytes);
133 $this->_mirrors[] = $is;
146 foreach ($this->_mirrors as $k => $stream)
150 unset($this->_mirrors[$k]);
162 if ($byteOffset > $this->_arraySize)
171 $this->_offset = $byteOffset;
181 $this->_array = array();
182 $this->_arraySize = 0;
184 foreach ($this->_mirrors as $stream)
186 $stream->flushBuffers();