MCPcopy Create free account
hub / github.com/Norbyte/bg3se / HexByteToByte

Function HexByteToByte

CoreLib/SymbolMapper.cpp:36–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36std::optional<uint8_t> HexByteToByte(char c1, char c2)
37{
38 auto hi = CharToByte(c1);
39 auto lo = CharToByte(c2);
40 if (hi && lo) {
41 return (*hi << 4) | *lo;
42 } else {
43 return {};
44 }
45}
46
47bool Pattern::FromString(std::string_view s)
48{

Callers 2

FromStringMethod · 0.85
LoadPatchTextMethod · 0.85

Calls 1

CharToByteFunction · 0.85

Tested by

no test coverage detected