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

Method copy

projects/JavaScript/proto/enums.js:2604–2936  ·  view source on GitHub ↗

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

(other)

Source from the content-addressed store, hash-verified

2602 * @returns {!Enums} This struct
2603 */
2604 copy (other) {
2605 if (other.byte0 != null) {
2606 this.byte0 = EnumByte.fromObject(other.byte0)
2607 } else {
2608 this.byte0 = undefined
2609 }
2610 if (other.byte1 != null) {
2611 this.byte1 = EnumByte.fromObject(other.byte1)
2612 } else {
2613 this.byte1 = undefined
2614 }
2615 if (other.byte2 != null) {
2616 this.byte2 = EnumByte.fromObject(other.byte2)
2617 } else {
2618 this.byte2 = undefined
2619 }
2620 if (other.byte3 != null) {
2621 this.byte3 = EnumByte.fromObject(other.byte3)
2622 } else {
2623 this.byte3 = undefined
2624 }
2625 if (other.byte4 != null) {
2626 this.byte4 = EnumByte.fromObject(other.byte4)
2627 } else {
2628 this.byte4 = undefined
2629 }
2630 if (other.byte5 != null) {
2631 this.byte5 = EnumByte.fromObject(other.byte5)
2632 } else {
2633 this.byte5 = undefined
2634 }
2635 if (other.char0 != null) {
2636 this.char0 = EnumChar.fromObject(other.char0)
2637 } else {
2638 this.char0 = undefined
2639 }
2640 if (other.char1 != null) {
2641 this.char1 = EnumChar.fromObject(other.char1)
2642 } else {
2643 this.char1 = undefined
2644 }
2645 if (other.char2 != null) {
2646 this.char2 = EnumChar.fromObject(other.char2)
2647 } else {
2648 this.char2 = undefined
2649 }
2650 if (other.char3 != null) {
2651 this.char3 = EnumChar.fromObject(other.char3)
2652 } else {
2653 this.char3 = undefined
2654 }
2655 if (other.char4 != null) {
2656 this.char4 = EnumChar.fromObject(other.char4)
2657 } else {
2658 this.char4 = undefined
2659 }
2660 if (other.char5 != null) {
2661 this.char5 = EnumChar.fromObject(other.char5)

Callers 1

fromObjectMethod · 0.45

Calls 1

fromObjectMethod · 0.45

Tested by

no test coverage detected