public function readList($valueType) { $list = array(); $count = $this->readShort(); for ($i = 0; $i < $count; ++$i) { $list[] = $this->readByType($valueType, true); } return $list; }