* Clone struct (deep clone) * @this {!StructSet} * @returns {!StructSet} Cloned struct
()
| 18548 | * @returns {!StructSet} Cloned struct |
| 18549 | */ |
| 18550 | clone () { |
| 18551 | // Serialize the struct to the FBE stream |
| 18552 | let writer = new StructSetModel(new fbe.WriteBuffer()) |
| 18553 | writer.serialize(this) |
| 18554 | |
| 18555 | // Deserialize the struct from the FBE stream |
| 18556 | let reader = new StructSetModel(new fbe.ReadBuffer()) |
| 18557 | reader.attachBuffer(writer.buffer) |
| 18558 | return reader.deserialize().value |
| 18559 | } |
| 18560 | |
| 18561 | /** |
| 18562 | * Is this struct equal to other one? |
nothing calls this directly
no test coverage detected