* Clone struct (deep clone) * @this {!StructHash} * @returns {!StructHash} Cloned struct
()
| 21468 | * @returns {!StructHash} Cloned struct |
| 21469 | */ |
| 21470 | clone () { |
| 21471 | // Serialize the struct to the FBE stream |
| 21472 | let writer = new StructHashModel(new fbe.WriteBuffer()) |
| 21473 | writer.serialize(this) |
| 21474 | |
| 21475 | // Deserialize the struct from the FBE stream |
| 21476 | let reader = new StructHashModel(new fbe.ReadBuffer()) |
| 21477 | reader.attachBuffer(writer.buffer) |
| 21478 | return reader.deserialize().value |
| 21479 | } |
| 21480 | |
| 21481 | /** |
| 21482 | * Is this struct equal to other one? |
nothing calls this directly
no test coverage detected