UserData read_user_data(std::istream& is) { UserData userData; userData.setText(read_string(is)); userData.setColor(read32(is)); return userData; }