function read_unpacked($count, $format) { $unpacked = unpack($format, $this->read_bytes($count)); return reset($unpacked); }