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

Method i2repr

scapy/fields.py:1444–1448  ·  view source on GitHub ↗
(self, pkt, x)

Source from the content-addressed store, hash-verified

1442 return super(_StrField, self).any2i(pkt, x) # type: ignore
1443
1444 def i2repr(self, pkt, x):
1445 # type: (Optional[Packet], I) -> str
1446 if x and isinstance(x, bytes):
1447 return repr(x)
1448 return super(_StrField, self).i2repr(pkt, x)
1449
1450 def i2m(self, pkt, x):
1451 # type: (Optional[Packet], Optional[I]) -> bytes

Callers

nothing calls this directly

Calls 1

i2reprMethod · 0.45

Tested by

no test coverage detected