* Clone struct (deep clone) * @this {!StructArray} * @returns {!StructArray} Cloned struct
()
| 13731 | * @returns {!StructArray} Cloned struct |
| 13732 | */ |
| 13733 | clone () { |
| 13734 | // Serialize the struct to the FBE stream |
| 13735 | let writer = new StructArrayModel(new fbe.WriteBuffer()) |
| 13736 | writer.serialize(this) |
| 13737 | |
| 13738 | // Deserialize the struct from the FBE stream |
| 13739 | let reader = new StructArrayModel(new fbe.ReadBuffer()) |
| 13740 | reader.attachBuffer(writer.buffer) |
| 13741 | return reader.deserialize().value |
| 13742 | } |
| 13743 | |
| 13744 | /** |
| 13745 | * Is this struct equal to other one? |
nothing calls this directly
no test coverage detected