Lines Matching refs:bytes
39 * @param array $bytes the bytes to append
42 protected function append(&$stream, $bytes) { argument
44 if (!is_array($bytes)) {
45 $bytes = array($bytes);
48 foreach ($bytes as $b) {
57 * @param array $bytes the bytes to prepend
60 protected function prepend(&$stream, $bytes) { argument
62 if (!is_array($bytes)) {
63 $bytes = array($bytes);
66 for ($i = count($bytes) - 1; $i >= 0; $i--) {
67 array_unshift($stream, $bytes[$i]);
80 $bytes = $this->readBytes($stream, 1);
82 return array_shift($bytes);
104 $bytes = array();
107 array_push($bytes, array_shift($stream));
111 return $bytes;