MCPcopy Index your code
hub / github.com/secdev/scapy / orb

Function orb

scapy/compat.py:151–156  ·  view source on GitHub ↗

Return ord(x) when not already an int.

(x)

Source from the content-addressed store, hash-verified

149
150
151def orb(x):
152 # type: (Union[int, str, bytes]) -> int
153 """Return ord(x) when not already an int."""
154 if isinstance(x, int):
155 return x
156 return ord(x)
157
158
159def bytes_hex(x):

Callers 15

saneFunction · 0.90
hexdumpFunction · 0.90
chexdumpFunction · 0.90
hexstrFunction · 0.90
repr_hexFunction · 0.90
hexdiffFunction · 0.90
_read_block_idbMethod · 0.90
hexstrMethod · 0.90
in6_getAddrTypeFunction · 0.90
in6_ifaceidtomacFunction · 0.90
in6_getRandomizedIfaceIdFunction · 0.90
in6_get_common_plenFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected