How to convert std :: string to std :: vector <uint8_t>?
The data format required to save games in the services of Google gaming games is std::vector<uint8_t>
, as indicated in the Data Formats section: https://developers.google.com/games/services/cpp/savedgames
I assume that the vector is some kind of array of bytes. It's right? So how to convert std::string
to std::vector<uint8_t>
?
+6