Conversation
Notices
-
Verius (verius@community.highlandarrow.com)'s status on Thursday, 07-Mar-2019 11:35:55 EST Verius What could possibly go wrong? ```std::string read_string(const char* mem, int pos) {
short len = mem[pos] + (mem[pos+1] << 8);
return std::string(mem+pos+sizeof(short), len);
}```