(self, pkt, x)
| 1139 | return 0 |
| 1140 | |
| 1141 | def i2repr(self, pkt, x): |
| 1142 | # type: (Optional[Packet], int) -> str |
| 1143 | if isinstance(x, int): |
| 1144 | return '%i' % x |
| 1145 | return super(NBytesField, self).i2repr(pkt, x) |
| 1146 | |
| 1147 | def addfield(self, pkt, s, val): |
| 1148 | # type: (Optional[Packet], bytes, Optional[int]) -> bytes |