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

Method _msb_lookup

scapy/layers/can.py:250–256  ·  view source on GitHub ↗
(start)

Source from the content-addressed store, hash-verified

248
249 @staticmethod
250 def _msb_lookup(start):
251 # type: (int) -> int
252 try:
253 return SignalField._lookup_table.index(start)
254 except ValueError:
255 raise Scapy_Exception("Only 64 bits for all SignalFields "
256 "are supported")
257
258 @staticmethod
259 def _lsb_lookup(start, size):

Callers 3

addfieldMethod · 0.95
getfieldMethod · 0.95
_lsb_lookupMethod · 0.80

Calls 1

Scapy_ExceptionClass · 0.90

Tested by

no test coverage detected