* Clone struct (deep clone) * @this {!Account} * @returns {!Account} Cloned struct
()
| 2818 | * @returns {!Account} Cloned struct |
| 2819 | */ |
| 2820 | clone () { |
| 2821 | // Serialize the struct to the FBE stream |
| 2822 | let writer = new AccountModel(new fbe.WriteBuffer()) |
| 2823 | writer.serialize(this) |
| 2824 | |
| 2825 | // Deserialize the struct from the FBE stream |
| 2826 | let reader = new AccountModel(new fbe.ReadBuffer()) |
| 2827 | reader.attachBuffer(writer.buffer) |
| 2828 | return reader.deserialize().value |
| 2829 | } |
| 2830 | |
| 2831 | /** |
| 2832 | * Is this struct equal to other one? |
nothing calls this directly
no test coverage detected