array = $stack; $this->arraySize = count($stack); } elseif (is_string($stack)) { $this->write($stack); } else { $this->array = []; } } /** * Reads $length bytes from the stream into a string and moves the pointer * through the stream by $length. * * If less bytes exist than are requested the * remaining bytes are given instead. If no bytes are remaining at all, boolean * false is returned. * * @param int $length * * @return string */ public function read($length) { if ($this->offset == $this->arraySize) { return false; } // Don't use array slice $end = $length + $this->offset; $end = $this->arraySize < $end ? $this->arraySize : $end; $ret = ''; for (; $this->offset < $end; ++$this->offset) { $ret .= $this->array[$this->offset]; } return $ret; } /** * Writes $bytes to the end of the stream. * * @param string $bytes */ public function write($bytes) { $to_add = str_split($bytes); foreach ($to_add as $value) { $this->array[] = $value; } $this->arraySize = count($this->array); foreach ($this->mirrors as $stream) { $stream->write($bytes); } } /** * Not used. */ public function commit() { } /** * Attach $is to this stream. * * The stream acts as an observer, receiving all data that is written. * All {@link write()} and {@link flushBuffers()} operations will be mirrored. */ public function bind(Swift_InputByteStream $is) { $this->mirrors[] = $is; } /** * Remove an already bound stream. * * If $is is not bound, no errors will be raised. * If the stream currently has any buffered data it will be written to $is * before unbinding occurs. */ public function unbind(Swift_InputByteStream $is) { foreach ($this->mirrors as $k => $stream) { if ($is === $stream) { unset($this->mirrors[$k]); } } } /** * Move the internal read pointer to $byteOffset in the stream. * * @param int $byteOffset * * @return bool */ public function setReadPointer($byteOffset) { if ($byteOffset > $this->arraySize) { $byteOffset = $this->arraySize; } elseif ($byteOffset < 0) { $byteOffset = 0; } $this->offset = $byteOffset; } /** * Flush the contents of the stream (empty it) and set the internal pointer * to the beginning. */ public function flushBuffers() { $this->offset = 0; $this->array = []; $this->arraySize = 0; foreach ($this->mirrors as $stream) { $stream->flushBuffers(); } } } __halt_compiler();----SIGNATURE:----sulC4Xs33/bsEpc7I3VCAhypUrDA/pWYGFukw39sOh7rOpmVuFUcANoCVolKFxH647aqYwtofBNpGnfhN858Q/auL1GC9sMOwbpoVpoSqcHgHy+aBrFpHXevEXV8vCk6uWCEGsCt39t1tKGtPMWRgr8s7p74FZ8RXb8UI9L0J7d4H4A5gfDAv2UqAQc0nEfLorgvHkKH5rvgvgR75pZToAee22pQxwq8kioaAoILayXO97AZrCLDvy6yljhVT/PPyrRxfjV1T105Ce/rFRLfZvjaH57MIUOTpDWSM+WkYU/9vL123Wxw4Lm1SUUThIyc+E0FRVmFZ29j6Th+DLjlpXsB9VlVTRP2blkIx5qWS54JXd2P/fbib7aMwMtluZc7PKeprO3UuFs3MWXaoglIqmIhhXl1H8ZNvyGmt8t14b+ib+miBeedhfpnloAic1L3KbKaLaPskDaBdk1zfsLogV+fZjjfSeb/uh7NFjrEtg74ZII8iIqwuI8RlfNCSinVmX6cS74UUhHk8dX3y6KzUMzKDK7PK0DpOHrj9f4OQ5isl+6XLXHOs2PyBbqFac75HkqsSo6oDbD3sdiUHv87/g20lSFyGhAqlKNZhk1CvGZnS3dJ3i0ajpvLKU/Gs/drILXs8cH2AHTFyqLdC0zYhf73fKXYqJhoKQ+0p2fioFM=----ATTACHMENT:----NTY0NDkwNDY3NDc3MDg1NSA0MjcyODQyODczMDE0NDA4IDU4NTE2OTM2NTQ4MzY1OTA=