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

Method copy

projects/JavaScript/proto/proto.js:4731–4738  ·  view source on GitHub ↗

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

(other)

Source from the content-addressed store, hash-verified

4729 * @returns {!BalanceMessage} This struct
4730 */
4731 copy (other) {
4732 if (other.body != null) {
4733 this.body = Balance.fromObject(other.body)
4734 } else {
4735 this.body = undefined
4736 }
4737 return this
4738 }
4739
4740 /**
4741 * Clone struct (deep clone)

Callers

nothing calls this directly

Calls 1

fromObjectMethod · 0.45

Tested by

no test coverage detected