MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / copy

Method copy

projects/JavaScript/proto/protoex.js:5681–5688  ·  view source on GitHub ↗

* Copy struct (shallow copy) * @this {!AccountMessage} * @param {!AccountMessage} other Other struct * @returns {!AccountMessage} This struct

(other)

Source from the content-addressed store, hash-verified

5679 * @returns {!AccountMessage} This struct
5680 */
5681 copy (other) {
5682 if (other.body != null) {
5683 this.body = Account.fromObject(other.body)
5684 } else {
5685 this.body = undefined
5686 }
5687 return this
5688 }
5689
5690 /**
5691 * Clone struct (deep clone)

Callers

nothing calls this directly

Calls 1

fromObjectMethod · 0.45

Tested by

no test coverage detected