MCPcopy Create free account
hub / github.com/CreditTone/hooker / type_map

Function type_map

hooker.py:1782–1790  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

1780
1781def convert_descriptor_to_readable(descriptor):
1782 def type_map(d):
1783 mapping = {
1784 'I': 'int', 'Z': 'boolean', 'B': 'byte',
1785 'S': 'short', 'J': 'long', 'F': 'float',
1786 'D': 'double', 'C': 'char', 'V': 'void',
1787 }
1788 if d.startswith('L') and d.endswith(';'):
1789 return d[1:-1].replace('/', '.').split('.')[-1]
1790 return mapping.get(d, d)
1791 args, ret = descriptor.split(')')
1792 args = args[1:] # remove opening '('
1793 i = 0

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected