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

Method i2m

scapy/fields.py:1546–1553  ·  view source on GitHub ↗
(self,
            pkt,  # type: Optional[Packet]
            i,  # type: Any
            )

Source from the content-addressed store, hash-verified

1544 self.cls = pkt_cls
1545
1546 def i2m(self,
1547 pkt, # type: Optional[Packet]
1548 i, # type: Any
1549 ):
1550 # type: (...) -> bytes
1551 if i is None:
1552 return b""
1553 return raw(i)
1554
1555 def m2i(self, pkt, m): # type: ignore
1556 # type: (Optional[Packet], bytes) -> Packet

Callers

nothing calls this directly

Calls 1

rawFunction · 0.90

Tested by

no test coverage detected