* Clone struct (deep clone) * @this {!Order} * @returns {!Order} Cloned struct
()
| 826 | * @returns {!Order} Cloned struct |
| 827 | */ |
| 828 | clone () { |
| 829 | // Serialize the struct to the FBE stream |
| 830 | let writer = new OrderModel(new fbe.WriteBuffer()) |
| 831 | writer.serialize(this) |
| 832 | |
| 833 | // Deserialize the struct from the FBE stream |
| 834 | let reader = new OrderModel(new fbe.ReadBuffer()) |
| 835 | reader.attachBuffer(writer.buffer) |
| 836 | return reader.deserialize().value |
| 837 | } |
| 838 | |
| 839 | /** |
| 840 | * Is this struct equal to other one? |
nothing calls this directly
no test coverage detected