* Clone struct (deep clone) * @this {!StructHashEx} * @returns {!StructHashEx} Cloned struct
()
| 23043 | * @returns {!StructHashEx} Cloned struct |
| 23044 | */ |
| 23045 | clone () { |
| 23046 | // Serialize the struct to the FBE stream |
| 23047 | let writer = new StructHashExModel(new fbe.WriteBuffer()) |
| 23048 | writer.serialize(this) |
| 23049 | |
| 23050 | // Deserialize the struct from the FBE stream |
| 23051 | let reader = new StructHashExModel(new fbe.ReadBuffer()) |
| 23052 | reader.attachBuffer(writer.buffer) |
| 23053 | return reader.deserialize().value |
| 23054 | } |
| 23055 | |
| 23056 | /** |
| 23057 | * Is this struct equal to other one? |
nothing calls this directly
no test coverage detected