(self)
| 3388 | |
| 3389 | # Struct deep clone |
| 3390 | def clone(self): |
| 3391 | # Serialize the struct to the FBE stream |
| 3392 | writer = AccountMessageModel(fbe.WriteBuffer()) |
| 3393 | writer.serialize(self) |
| 3394 | |
| 3395 | # Deserialize the struct from the FBE stream |
| 3396 | reader = AccountMessageModel(fbe.ReadBuffer()) |
| 3397 | reader.attach_buffer(writer.buffer) |
| 3398 | return reader.deserialize()[0] |
| 3399 | |
| 3400 | def __eq__(self, other): |
| 3401 | if not isinstance(self, other.__class__): |
nothing calls this directly
no test coverage detected