MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _do_first_level_decoding

Function _do_first_level_decoding

pager_lib/nmb/utils.py:34–36  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

32 assert name_length == 32
33
34 def _do_first_level_decoding(m):
35 s = m.group(0)
36 return chr(((ord(s[0]) - ord('A')) << 4) | (ord(s[1]) - ord('A')))
37
38 decoded_name = re.sub('..', _do_first_level_decoding, name[1:33])
39 if name[33] == '\0':

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected