Read a single character from the input buffer. Returns -1 when the end of the file is reached. @ignore
protected function read() {
if ($this->pos < $this->len) {
$c = $this->data[$this->pos];
$this->pos++;
return $c;
}
else {
return -1;
}
}