(self)
| 8491 | |
| 8492 | # Struct deep clone |
| 8493 | def clone(self): |
| 8494 | # Serialize the struct to the FBE stream |
| 8495 | writer = StructBytesModel(fbe.WriteBuffer()) |
| 8496 | writer.serialize(self) |
| 8497 | |
| 8498 | # Deserialize the struct from the FBE stream |
| 8499 | reader = StructBytesModel(fbe.ReadBuffer()) |
| 8500 | reader.attach_buffer(writer.buffer) |
| 8501 | return reader.deserialize()[0] |
| 8502 | |
| 8503 | def __eq__(self, other): |
| 8504 | if not isinstance(self, other.__class__): |
nothing calls this directly
no test coverage detected