Lines Matching refs:stream
42 protected function append(&$stream, $bytes) { argument
49 array_push($stream, $b);
60 protected function prepend(&$stream, $bytes) { argument
67 array_unshift($stream, $bytes[$i]);
78 protected function readByte(&$stream) { argument
80 $bytes = $this->readBytes($stream, 1);
94 protected function readBytes(&$stream, $limit) { argument
96 if (!is_array($stream)) {
100 if (count($stream) < $limit) {
101 …GTException("not enough bytes, tried to read {$limit}, but only " . count($stream) . " remaining");
107 array_push($bytes, array_shift($stream));