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

Method copy

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

3930 * @returns {!OrderMessage} This struct
3931 */
3932 copy (other) {
3933 if (other.body != null) {
3934 this.body = Order.fromObject(other.body)
3935 } else {
3936 this.body = undefined
3937 }
3938 return this
3939 }
3940
3941 /**
3942 * Clone struct (deep clone)

Callers

nothing calls this directly

Calls 1

fromObjectMethod · 0.45

Tested by

no test coverage detected