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

Function chb

scapy/compat.py:145–148  ·  view source on GitHub ↗

Same than chr() but encode as bytes.

(x)

Source from the content-addressed store, hash-verified

143
144
145def chb(x):
146 # type: (int) -> bytes
147 """Same than chr() but encode as bytes."""
148 return struct.pack("!B", x)
149
150
151def orb(x):

Callers 15

RandBinClass · 0.90
fletcher16_checkbytesFunction · 0.90
mac2strFunction · 0.90
in6_getRandomizedIfaceIdFunction · 0.90
addfieldMethod · 0.90
obfuscateFunction · 0.90
i2mMethod · 0.90
addfieldMethod · 0.90
huffman_conv2strMethod · 0.90
i2reprMethod · 0.90
any2iMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected