MCPcopy Create free account
hub / github.com/ActiveState/code / hex2bin

Function hex2bin

recipes/Python/576598_Utility_Mill_Test/recipe-576598.py:168–169  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

166 return ''.join('%02X' % ord(y) for y in x)
167
168def hex2bin(x):
169 return ''.join(chr(int(x[y:y+2], 16)) for y in range(0, len(x), 2))
170
171################################################################################
172

Callers 2

test_createFunction · 0.85
test_encodeFunction · 0.85

Calls 2

rangeFunction · 0.85
joinMethod · 0.45

Tested by 2

test_createFunction · 0.68
test_encodeFunction · 0.68