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

Method i2repr

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

Source from the content-addressed store, hash-verified

1139 return 0
1140
1141 def i2repr(self, pkt, x):
1142 # type: (Optional[Packet], int) -> str
1143 if isinstance(x, int):
1144 return '%i' % x
1145 return super(NBytesField, self).i2repr(pkt, x)
1146
1147 def addfield(self, pkt, s, val):
1148 # type: (Optional[Packet], bytes, Optional[int]) -> bytes

Callers

nothing calls this directly

Calls 1

i2reprMethod · 0.45

Tested by

no test coverage detected