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

Method any2i

scapy/layers/dcerpc.py:1768–1775  ·  view source on GitHub ↗
(self, pkt, x)

Source from the content-addressed store, hash-verified

1766 return self.fld.addfield(pkt, s, val.value)
1767
1768 def any2i(self, pkt, x):
1769 # User-friendly helper
1770 if x is not None and not isinstance(x, NDRPointer):
1771 return NDRPointer(
1772 referent_id=0x20000,
1773 value=self.fld.any2i(pkt, x),
1774 )
1775 return x
1776
1777 # Can't use i2repr = Field.i2repr and so on on PY2 :/
1778 def i2repr(self, pkt, val):

Callers

nothing calls this directly

Calls 2

NDRPointerClass · 0.85
any2iMethod · 0.45

Tested by

no test coverage detected