Guest User

Untitled

a guest
Oct 17th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. string Codegen::createCodeString(vector<FPCode> vCodes) {
  2. if (vCodes.size() < 3) {
  3. return "";
  4. }
  5. std::ostringstream codestream;
  6. codestream << std::setfill('0') << std::hex;
  7. for (uint i = 0; i < vCodes.size(); i++)
  8. codestream << std::setw(5) << vCodes[i].frame;
  9.  
  10. for (uint i = 0; i < vCodes.size(); i++) {
  11. int hash = vCodes[i].code;
  12. codestream << std::setw(5) << hash;
  13. }
  14. return compress(codestream.str());
  15. }
Add Comment
Please, Sign In to add comment