(self)
| 2903 | |
| 2904 | # Struct deep clone |
| 2905 | def clone(self): |
| 2906 | # Serialize the struct to the FBE stream |
| 2907 | writer = BalanceMessageModel(fbe.WriteBuffer()) |
| 2908 | writer.serialize(self) |
| 2909 | |
| 2910 | # Deserialize the struct from the FBE stream |
| 2911 | reader = BalanceMessageModel(fbe.ReadBuffer()) |
| 2912 | reader.attach_buffer(writer.buffer) |
| 2913 | return reader.deserialize()[0] |
| 2914 | |
| 2915 | def __eq__(self, other): |
| 2916 | if not isinstance(self, other.__class__): |
nothing calls this directly
no test coverage detected