QString相关转换
std::string 互转 std::vector“12345678” 和 {0x12, 0x34, 0x56, 0x78}std::vector<unsigned char> StringHelper::Hex_StringToVector(std::string& hex){ std::vector<unsigned char> bytes; //自动删除空格和标点符号 hex.erase(std::remove_if(hex.begin(), he
原创
2021-12-15 17:38:21 ·
1287 阅读 ·
0 评论