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

Function bytes_hex

scapy/compat.py:159–162  ·  view source on GitHub ↗

Hexify a str or a bytes object

(x)

Source from the content-addressed store, hash-verified

157
158
159def bytes_hex(x):
160 # type: (AnyStr) -> bytes
161 """Hexify a str or a bytes object"""
162 return binascii.b2a_hex(bytes_encode(x))
163
164
165def hex_bytes(x):

Callers 13

_inet6_ntopFunction · 0.90
i2reprMethod · 0.90
i2reprMethod · 0.90
i2reprMethod · 0.90
_guess_alarm_payloadFunction · 0.90
_guess_block_classFunction · 0.90
_getLogonInformationMethod · 0.90
_getServerChecksumMethod · 0.90
_getKDCChecksumMethod · 0.90
_getTicketChecksumMethod · 0.90
edit_ticketMethod · 0.90

Calls 1

bytes_encodeFunction · 0.85

Tested by

no test coverage detected