Method
__init__
(
self,
name, # type: str
default, # type: Tuple[str, int]
wordbytes=1, # type: int
length_from=None # type: Optional[Callable[[Packet], int]]
)
Source from the content-addressed store, hash-verified
| 3519 | |
| 3520 | class IP6PrefixField(_IPPrefixFieldBase): |
| 3521 | def __init__( |
| 3522 | self, |
| 3523 | name, # type: str |
| 3524 | default, # type: Tuple[str, int] |
| 3525 | wordbytes=1, # type: int |
| 3526 | length_from=None # type: Optional[Callable[[Packet], int]] |
| 3527 | ): |
| 3528 | # type: (...) -> None |
| 3529 | _IPPrefixFieldBase.__init__( |
| 3530 | self, |
| 3531 | name, |
| 3532 | default, |
| 3533 | wordbytes, |
| 3534 | 16, |
| 3535 | lambda a: inet_pton(socket.AF_INET6, a), |
| 3536 | lambda n: inet_ntop(socket.AF_INET6, n), |
| 3537 | length_from |
| 3538 | ) |
| 3539 | |
| 3540 | |
| 3541 | class UTCTimeField(Field[float, int]): |
Callers
nothing calls this directly
Tested by
no test coverage detected