2012年9月27日

从2进制文件读取一个UTF8字符串 ReadUTF8 ,跨平台

摘要: 直接贴代码: 游戏开发群:44727718如果缺少什么函数,请给下看。。 1 string HSReadData::ReadUTF8() 2 { 3 4 int utflen = ReadShort() & 0xffff; 5 wstring str; 6 str.resize(utflen); 7 vector<char> bytes; 8 bytes.resize(utflen); 9 for (int i=0;i<utflen;++i)10 {11 bytes[i] = this->ReadByte();1... 阅读全文

posted @ 2012-09-27 17:01 游戏开发:主席 阅读(562) 评论(0) 推荐(0) 编辑

导航