(self)
| 15611 | |
| 15612 | # Struct deep clone |
| 15613 | def clone(self): |
| 15614 | # Serialize the struct to the FBE stream |
| 15615 | writer = StructEmptyModel(fbe.WriteBuffer()) |
| 15616 | writer.serialize(self) |
| 15617 | |
| 15618 | # Deserialize the struct from the FBE stream |
| 15619 | reader = StructEmptyModel(fbe.ReadBuffer()) |
| 15620 | reader.attach_buffer(writer.buffer) |
| 15621 | return reader.deserialize()[0] |
| 15622 | |
| 15623 | def __eq__(self, other): |
| 15624 | if not isinstance(self, other.__class__): |
nothing calls this directly
no test coverage detected