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

Method copy

projects/JavaScript/proto/protoex.js:4083–4090  ·  view source on GitHub ↗

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

(other)

Source from the content-addressed store, hash-verified

4081 * @returns {!OrderMessage} This struct
4082 */
4083 copy (other) {
4084 if (other.body != null) {
4085 this.body = Order.fromObject(other.body)
4086 } else {
4087 this.body = undefined
4088 }
4089 return this
4090 }
4091
4092 /**
4093 * Clone struct (deep clone)

Callers

nothing calls this directly

Calls 1

fromObjectMethod · 0.45

Tested by

no test coverage detected