public function getBytes($nbBytes) { $value = substr($this->data, $this->offset, $this->offset + $nbBytes); $this->moveOffset($nbBytes); return $value; }