(self)
| 13991 | |
| 13992 | # Struct deep clone |
| 13993 | def clone(self): |
| 13994 | # Serialize the struct to the FBE stream |
| 13995 | writer = StructHashModel(fbe.WriteBuffer()) |
| 13996 | writer.serialize(self) |
| 13997 | |
| 13998 | # Deserialize the struct from the FBE stream |
| 13999 | reader = StructHashModel(fbe.ReadBuffer()) |
| 14000 | reader.attach_buffer(writer.buffer) |
| 14001 | return reader.deserialize()[0] |
| 14002 | |
| 14003 | def __eq__(self, other): |
| 14004 | if not isinstance(self, other.__class__): |
nothing calls this directly
no test coverage detected