(self, x)
| 260 | return s[self.sz:], self.m2i(pkt, self.struct.unpack(s[:self.sz])[0]) |
| 261 | |
| 262 | def do_copy(self, x): |
| 263 | # type: (I) -> I |
| 264 | if isinstance(x, list): |
| 265 | x = x[:] # type: ignore |
| 266 | for i in range(len(x)): |
| 267 | if isinstance(x[i], BasePacket): |
| 268 | x[i] = x[i].copy() |
| 269 | return x # type: ignore |
| 270 | if hasattr(x, "copy"): |
| 271 | return x.copy() # type: ignore |
| 272 | return x |
| 273 | |
| 274 | def __repr__(self): |
| 275 | # type: () -> str |
no test coverage detected