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

Function _len

scapy/main.py:552–554  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

550 cur_line = [] # type: List[str]
551
552 def _len(line):
553 # type: (List[str]) -> int
554 return sum(len(elt) for elt in line) + len(line) - 1
555 while _quote:
556 if not cur_line or (_len(cur_line) + len(_quote[0]) - 1 <= max_len):
557 cur_line.append(_quote.pop(0))

Callers 1

_prepare_quoteFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…