Advertisement
Guest User

Untitled

a guest
Nov 12th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1.  
  2. std::string GetUnicodeString(uint64_t addr, int stringLength)
  3. {
  4. char16_t wcharTemp[64] = { '\0' };
  5. ReadTarkovMemory(addr, wcharTemp, stringLength * 2);
  6. std::string u8_conv = std::wstring_convert<std::codecvt_utf8_utf16<char16_t>, char16_t>{}.to_bytes(wcharTemp);
  7. return u8_conv;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement