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

Method i2count

scapy/fields.py:192–196  ·  view source on GitHub ↗

Convert internal value to a number of elements usable by a FieldLenField. Always 1 except for list fields

(self, pkt, x)

Source from the content-addressed store, hash-verified

190 return self.sz
191
192 def i2count(self, pkt, x):
193 # type: (Optional[Packet], I) -> int
194 """Convert internal value to a number of elements usable by a FieldLenField.
195 Always 1 except for list fields"""
196 return 1
197
198 def h2i(self, pkt, x):
199 # type: (Optional[Packet], Any) -> I

Callers 1

i2mMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected