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

Method __init__

scapy/fields.py:1118–1120  ·  view source on GitHub ↗
(self, name, default, sz)

Source from the content-addressed store, hash-verified

1116
1117class NBytesField(Field[int, List[int]]):
1118 def __init__(self, name, default, sz):
1119 # type: (str, Optional[int], int) -> None
1120 Field.__init__(self, name, default, "<" + "B" * sz)
1121
1122 def i2m(self, pkt, x):
1123 # type: (Optional[Packet], Optional[int]) -> List[int]

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected