diff --git a/src/std_utils.cc b/src/std_utils.cc index e042ff3..7ced6c4 100644 --- a/src/std_utils.cc +++ b/src/std_utils.cc @@ -374,6 +374,14 @@ namespace pEp { ret.push_back((unsigned char)val_int); } return ret; + + // alternative way + // std::string extract; + // for (std::string::const_iterator pos = hex_str.begin(); pos < hex_str.end(); pos += 2) { + // extract.assign(pos, pos + 2); + // ret.push_back(std::stoi(extract, nullptr, 16)); + // } + // return ret; }