MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / convertToString

Function convertToString

TheForceEngine/TFE_Input/replay.cpp:255–263  ·  view source on GitHub ↗

Stores the vectors as strings for writings

Source from the content-addressed store, hash-verified

253
254 // Stores the vectors as strings for writings
255 string convertToString(vector<s32> keysDown)
256 {
257 std::ostringstream oss;
258 for (int i = 0; i < keysDown.size(); ++i) {
259 if (i != 0) oss << ",";
260 oss << keysDown[i];
261 }
262 return oss.str();
263 }
264
265 // Loads the strings int values as vectors for replays
266 vector<s32> convertFromString(string keyStr)

Callers 2

serializeInputsFunction · 0.85
logReplayPositionFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected