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

Method any2i

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

Source from the content-addressed store, hash-verified

1477
1478class StrFieldUtf16(StrField):
1479 def any2i(self, pkt, x):
1480 # type: (Optional[Packet], Optional[str]) -> bytes
1481 if isinstance(x, str):
1482 return self.h2i(pkt, x)
1483 return super(StrFieldUtf16, self).any2i(pkt, x)
1484
1485 def i2repr(self, pkt, x):
1486 # type: (Optional[Packet], bytes) -> str

Callers

nothing calls this directly

Calls 2

h2iMethod · 0.95
any2iMethod · 0.45

Tested by

no test coverage detected