* Clone struct (deep clone) * @this {!Account} * @returns {!Account} Cloned struct
()
| 2969 | * @returns {!Account} Cloned struct |
| 2970 | */ |
| 2971 | clone () { |
| 2972 | // Serialize the struct to the FBE stream |
| 2973 | let writer = new AccountModel(new fbe.WriteBuffer()) |
| 2974 | writer.serialize(this) |
| 2975 | |
| 2976 | // Deserialize the struct from the FBE stream |
| 2977 | let reader = new AccountModel(new fbe.ReadBuffer()) |
| 2978 | reader.attachBuffer(writer.buffer) |
| 2979 | return reader.deserialize().value |
| 2980 | } |
| 2981 | |
| 2982 | /** |
| 2983 | * Is this struct equal to other one? |
nothing calls this directly
no test coverage detected