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

Method copy

projects/JavaScript/proto/proto.js:5530–5537  ·  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

5528 * @returns {!AccountMessage} This struct
5529 */
5530 copy (other) {
5531 if (other.body != null) {
5532 this.body = Account.fromObject(other.body)
5533 } else {
5534 this.body = undefined
5535 }
5536 return this
5537 }
5538
5539 /**
5540 * Clone struct (deep clone)

Callers

nothing calls this directly

Calls 1

fromObjectMethod · 0.45

Tested by

no test coverage detected