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

Method copy

projects/JavaScript/proto/protoex.js:2051–2059  ·  view source on GitHub ↗

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

(other)

Source from the content-addressed store, hash-verified

2049 * @returns {!Balance} This struct
2050 */
2051 copy (other) {
2052 super.copy(other)
2053 if (other.locked != null) {
2054 this.locked = other.locked
2055 } else {
2056 this.locked = undefined
2057 }
2058 return this
2059 }
2060
2061 /**
2062 * Clone struct (deep clone)

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected