(self, pkt, x)
| 1442 | return super(_StrField, self).any2i(pkt, x) # type: ignore |
| 1443 | |
| 1444 | def i2repr(self, pkt, x): |
| 1445 | # type: (Optional[Packet], I) -> str |
| 1446 | if x and isinstance(x, bytes): |
| 1447 | return repr(x) |
| 1448 | return super(_StrField, self).i2repr(pkt, x) |
| 1449 | |
| 1450 | def i2m(self, pkt, x): |
| 1451 | # type: (Optional[Packet], Optional[I]) -> bytes |