Lines Matching refs:hex_string
34 static std::vector<uint8_t> ParseHexString(std::string_view hex_string) {
35 auto length = hex_string.size();
42 auto sub = "0x" + std::string(hex_string.substr(i * 2, 2));
68 std::string_view hex_string;
84 hex_string = optarg;
88 if (hex_string.starts_with("0x") || hex_string.starts_with("0X")) {
89 hex_string = hex_string.substr(2);
91 if (hex_string.empty()) {
92 LOG(ERROR) << "Invalid input hex string: " << hex_string;
96 auto data = ParseHexString(hex_string);
98 LOG(ERROR) << "Failed to parse the input hex string: " << hex_string;