(self, pkt, x)
| 1436 | return len(x) |
| 1437 | |
| 1438 | def any2i(self, pkt, x): |
| 1439 | # type: (Optional[Packet], Any) -> I |
| 1440 | if isinstance(x, str): |
| 1441 | x = bytes_encode(x) |
| 1442 | return super(_StrField, self).any2i(pkt, x) # type: ignore |
| 1443 | |
| 1444 | def i2repr(self, pkt, x): |
| 1445 | # type: (Optional[Packet], I) -> str |
nothing calls this directly
no test coverage detected