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

Method _numbytes

scapy/fields.py:3434–3437  ·  view source on GitHub ↗
(self, pfxlen)

Source from the content-addressed store, hash-verified

3432 self.length_from = length_from
3433
3434 def _numbytes(self, pfxlen):
3435 # type: (int) -> int
3436 wbits = self.wordbytes * 8
3437 return ((pfxlen + (wbits - 1)) // wbits) * self.wordbytes
3438
3439 def h2i(self, pkt, x):
3440 # type: (Optional[Packet], str) -> Tuple[str, int]

Callers 3

i2mMethod · 0.95
addfieldMethod · 0.95
getfieldMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected