MCPcopy Create free account
hub / github.com/secdev/scapy / any2i

Method any2i

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

Source from the content-addressed store, hash-verified

2140 return super(_NDRVarField, self).i2len(pkt, x.value)
2141
2142 def any2i(self, pkt, x):
2143 # User-friendly helper
2144 if not isinstance(x, NDRVaryingArray):
2145 return NDRVaryingArray(
2146 value=super(_NDRVarField, self).any2i(pkt, x),
2147 )
2148 return x
2149
2150 # Can't use i2repr = Field.i2repr and so on on PY2 :/
2151 def i2repr(self, pkt, val):

Callers 4

any2iMethod · 0.45
any2iMethod · 0.45
any2iMethod · 0.45
any2iMethod · 0.45

Calls 1

NDRVaryingArrayClass · 0.85

Tested by

no test coverage detected