* Clone struct (deep clone) * @this {!Order} * @returns {!Order} Cloned struct
()
| 787 | * @returns {!Order} Cloned struct |
| 788 | */ |
| 789 | clone () { |
| 790 | // Serialize the struct to the FBE stream |
| 791 | let writer = new OrderModel(new fbe.WriteBuffer()) |
| 792 | writer.serialize(this) |
| 793 | |
| 794 | // Deserialize the struct from the FBE stream |
| 795 | let reader = new OrderModel(new fbe.ReadBuffer()) |
| 796 | reader.attachBuffer(writer.buffer) |
| 797 | return reader.deserialize().value |
| 798 | } |
| 799 | |
| 800 | /** |
| 801 | * Is this struct equal to other one? |
nothing calls this directly
no test coverage detected