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

Method i2repr

scapy/fields.py:1877–1884  ·  view source on GitHub ↗
(self,
               pkt,  # type: Optional[Packet]
               v,  # type: bytes
               )

Source from the content-addressed store, hash-verified

1875 self.length_from = lambda x, length=length: length # type: ignore
1876
1877 def i2repr(self,
1878 pkt, # type: Optional[Packet]
1879 v, # type: bytes
1880 ):
1881 # type: (...) -> str
1882 if isinstance(v, bytes) and not conf.debug_strfixedlenfield:
1883 v = v.rstrip(b"\0")
1884 return super(StrFixedLenField, self).i2repr(pkt, v)
1885
1886 def getfield(self, pkt, s):
1887 # type: (Packet, bytes) -> Tuple[bytes, bytes]

Callers

nothing calls this directly

Calls 1

i2reprMethod · 0.45

Tested by

no test coverage detected