MCPcopy Create free account
hub / github.com/RischardV/emoji-shellcoding / hex_to_bytes

Function hex_to_bytes

block/block.cpp:52–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52static Bytes hex_to_bytes(const std::string &hex)
53{
54 Bytes bytes;
55 assert(hex.size() % 2 == 0);
56 size_t pos = 0;
57 while((pos+1 < hex.size())) {
58 bytes.push_back(hex2byte(hex[pos], hex[pos+1]));
59 pos += 2;
60 }
61 return bytes;
62}
63
64static bool is_bytes_prefix(const Bytes &prefix, const Bytes &bytes)
65{

Callers 5

SequenceMethod · 0.85
InstructionMethod · 0.85
load_seqFunction · 0.85
load_instrFunction · 0.85
mainFunction · 0.85

Calls 2

hex2byteFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected