| 579 | "Expected internal representation to be 64 bytes."); |
| 580 | |
| 581 | inline Variant::Variant(const Variant& other) : is_inline_(other.is_inline_) { |
| 582 | if (!other.is_empty()) { |
| 583 | if (other.IsInlineValue()) { |
| 584 | value_.inline_value = InlineValue(); |
| 585 | other.GetValue()->CloneInto(GetValue()); |
| 586 | value_.inline_value.has_value = true; |
| 587 | } else { |
| 588 | value_.heap_value = HeapValue(other.GetValue()->Clone()); |
| 589 | is_inline_ = false; |
| 590 | } |
| 591 | } |
| 592 | } |
| 593 | |
| 594 | inline Variant::Variant(Variant&& other) noexcept |
| 595 | : is_inline_(other.is_inline_) { |
nothing calls this directly
no test coverage detected