(self)
| 2418 | |
| 2419 | # Struct deep clone |
| 2420 | def clone(self): |
| 2421 | # Serialize the struct to the FBE stream |
| 2422 | writer = OrderMessageModel(fbe.WriteBuffer()) |
| 2423 | writer.serialize(self) |
| 2424 | |
| 2425 | # Deserialize the struct from the FBE stream |
| 2426 | reader = OrderMessageModel(fbe.ReadBuffer()) |
| 2427 | reader.attach_buffer(writer.buffer) |
| 2428 | return reader.deserialize()[0] |
| 2429 | |
| 2430 | def __eq__(self, other): |
| 2431 | if not isinstance(self, other.__class__): |
nothing calls this directly
no test coverage detected