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

Function hex_bytes

scapy/compat.py:165–168  ·  view source on GitHub ↗

De-hexify a str or a byte object

(x)

Source from the content-addressed store, hash-verified

163
164
165def hex_bytes(x):
166 # type: (AnyStr) -> bytes
167 """De-hexify a str or a byte object"""
168 return binascii.a2b_hex(bytes_encode(x))
169
170
171def int_bytes(x, size):

Callers 12

_inet6_ptonFunction · 0.90
import_hexcapFunction · 0.90
http2.pyFile · 0.90
isis_area2strFunction · 0.90
isis_sysid2strFunction · 0.90
isis_nodeid2strFunction · 0.90
isis_lspid2strFunction · 0.90
_prompt_hashMethod · 0.90
edit_ticketMethod · 0.90
read_packetMethod · 0.90
post_buildMethod · 0.90
pkcs_i2ospFunction · 0.90

Calls 1

bytes_encodeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…