MCPcopy Create free account
hub / github.com/apache/arrow / ParseHexValues

Function ParseHexValues

cpp/src/arrow/util/string.cc:95–103  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95Status ParseHexValues(std::string_view hex_string, uint8_t* out) {
96 if (hex_string.size() % 2 != 0) {
97 return Status::Invalid("Expected base16 hex string");
98 }
99 for (size_t j = 0; j < hex_string.size() / 2; ++j) {
100 RETURN_NOT_OK(ParseHexValue(hex_string.data() + j * 2, out + j));
101 }
102 return Status::OK();
103}
104
105namespace internal {
106

Calls 5

ParseHexValueFunction · 0.85
InvalidFunction · 0.50
OKFunction · 0.50
sizeMethod · 0.45
dataMethod · 0.45

Tested by 1