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

Method copy

projects/JavaScript/proto/protoex.js:4882–4889  ·  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

4880 * @returns {!BalanceMessage} This struct
4881 */
4882 copy (other) {
4883 if (other.body != null) {
4884 this.body = Balance.fromObject(other.body)
4885 } else {
4886 this.body = undefined
4887 }
4888 return this
4889 }
4890
4891 /**
4892 * Clone struct (deep clone)

Callers

nothing calls this directly

Calls 1

fromObjectMethod · 0.45

Tested by

no test coverage detected